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

#include <WorldObjectGlobal.hpp>

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

Public Types

enum  enumType {
  NOTYPE =0, URBAN =1, ARMY =2, FLEET =3,
  NOMADIC_TRIBE =4, TRIBAL_ARTIFACT =5
}
 

Public Member Functions

 WorldObjectGlobal ()
 
virtual std::string getName ()
 
virtual std::string getExtendedInfo ()
 
int distanceTo (WorldObjectGlobal *_obj)
 
bool isOnMap (int _x, int _y)
 
virtual ~WorldObjectGlobal ()
 

Public Attributes

int worldX
 
int worldY
 
Worldworld
 
std::string name
 
std::string nameType
 
int type
 

Member Enumeration Documentation

◆ enumType

Enumerator
NOTYPE 
URBAN 
ARMY 
FLEET 
NOMADIC_TRIBE 
TRIBAL_ARTIFACT 

Constructor & Destructor Documentation

◆ WorldObjectGlobal()

WorldObjectGlobal::WorldObjectGlobal ( )

◆ ~WorldObjectGlobal()

virtual WorldObjectGlobal::~WorldObjectGlobal ( )
inlinevirtual

Member Function Documentation

◆ distanceTo()

int WorldObjectGlobal::distanceTo ( WorldObjectGlobal _obj)
inline

◆ getExtendedInfo()

virtual std::string WorldObjectGlobal::getExtendedInfo ( )
inlinevirtual

◆ getName()

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

◆ isOnMap()

bool WorldObjectGlobal::isOnMap ( int  _x,
int  _y 
)
inline

Member Data Documentation

◆ name

std::string WorldObjectGlobal::name

◆ nameType

std::string WorldObjectGlobal::nameType

◆ type

int WorldObjectGlobal::type

◆ world

World* WorldObjectGlobal::world

◆ worldX

int WorldObjectGlobal::worldX

◆ worldY

int WorldObjectGlobal::worldY

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