|
WorldSim
inDev
2D tile-based sandbox RPG with procedurally generated fantasy world simulator 🌏
|
#include <Static.hpp>


Public Member Functions | |
| Static () | |
| virtual std::string | getName () |
| virtual void | interact (WorldObject *obj, int interactionType=0) |
| virtual Texture * | currentTexture () |
Public Attributes | |
| std::string | name |
| unsigned char | blockMove |
| unsigned char | blockLOS |
| unsigned char | id |
Statics are objects which can't move on their own, and therefore they don't need to know their coordinates. They also only tick once per day.
Static subclasses: Flora Tree Building Furniture
Statics may block movement and/or LOS
Statics probably won't be able to stack, to save memory.
|
inline |
|
inlinevirtual |
Reimplemented in Static_Tree, and Flora.
|
inlinevirtual |
Reimplemented in Flora.
|
inlinevirtual |
| unsigned char Static::blockLOS |
| unsigned char Static::blockMove |
| unsigned char Static::id |
| std::string Static::name |
1.8.13