WorldSim  inDev
2D tile-based sandbox RPG with procedurally generated fantasy world simulator 🌏
Public Member Functions | Public Attributes | List of all members
Static Class Reference

#include <Static.hpp>

Inheritance diagram for Static:
Inheritance graph
[legend]
Collaboration diagram for Static:
Collaboration graph
[legend]

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Static()

Static::Static ( )
inline

Member Function Documentation

◆ currentTexture()

virtual Texture* Static::currentTexture ( )
inlinevirtual

Reimplemented in Static_Tree, and Flora.

◆ getName()

virtual std::string Static::getName ( )
inlinevirtual

Reimplemented in Flora.

◆ interact()

virtual void Static::interact ( WorldObject obj,
int  interactionType = 0 
)
inlinevirtual

Member Data Documentation

◆ blockLOS

unsigned char Static::blockLOS

◆ blockMove

unsigned char Static::blockMove

◆ id

unsigned char Static::id

◆ name

std::string Static::name

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