Recast  1
Game with custom magic
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
ITemperatureWorldChunkableGeneratableMixin Class Referenceabstract

#include <ITemperatureWorldChunkableGeneratable.hpp>

Inheritance diagram for ITemperatureWorldChunkableGeneratableMixin:
Inheritance graph
Collaboration diagram for ITemperatureWorldChunkableGeneratableMixin:
Collaboration graph

Public Member Functions

virtual bool hasOrIsGeneratableChunk (Coord x, Coord y, Coord z) const noexcept=0
 
virtual std::shared_ptr
< ITemperatureWorldBoundable
< ITemperatureWorld > > 
getOrGenerateChunk (Coord x, Coord y, Coord z)=0
 

Detailed Description

Should not be derived directly. Use ITemperatureWorldChunkableGeneratable. This class is useful for dynamic_cast.

Member Function Documentation

virtual std::shared_ptr<ITemperatureWorldBoundable<ITemperatureWorld> > ITemperatureWorldChunkableGeneratableMixin::getOrGenerateChunk ( Coord  x,
Coord  y,
Coord  z 
)
pure virtual

Retrieves chunk which holds this point. If chunk doesn't exist, the method will generate chunk if it's possible.

Parameters
xX coordinate.
yY coordinate.
zZ coordinate.
Returns
Chunk at the point.

Implemented in GeneratableChunkedTemperatureWorld.

virtual bool ITemperatureWorldChunkableGeneratableMixin::hasOrIsGeneratableChunk ( Coord  x,
Coord  y,
Coord  z 
) const
pure virtualnoexcept

Tells whether the chunk which holds this point exists. If chunk doesn't exist, the method will tell whether it will generated on getOrGenerateChunk call. This method doesn't throw exceptions.

Parameters
xX coordinate.
yY coordinate.
zZ coordinate.
Returns
True if chunk exists.

Implemented in GeneratableChunkedTemperatureWorld.


The documentation for this class was generated from the following file: