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

#include <Creature_Knowledge.hpp>

Collaboration diagram for Creature_Knowledge:
Collaboration graph
[legend]

Public Member Functions

 Creature_Knowledge ()
 
void init ()
 
void addTile (World_Local *, int, int)
 
char hasSeen (World_Local *, int, int)
 
void updateThreat (short int threatX, short int threatY)
 
void updateLOS ()
 
void clear ()
 
char nextStep ()
 

Public Attributes

Pathing_Local p
 
unsigned int pathIndex
 
Vector< HasXY * > vVisitedTiles
 
Vector< LocalTile * > vVisibleTiles
 
HasXY currentGoal
 
HasXY threatLocation
 

Constructor & Destructor Documentation

◆ Creature_Knowledge()

Creature_Knowledge::Creature_Knowledge ( )

Member Function Documentation

◆ addTile()

void Creature_Knowledge::addTile ( World_Local _map,
int  _x,
int  _y 
)

◆ clear()

void Creature_Knowledge::clear ( )

◆ hasSeen()

char Creature_Knowledge::hasSeen ( World_Local _map,
int  _x,
int  _y 
)

◆ init()

void Creature_Knowledge::init ( )

◆ nextStep()

char Creature_Knowledge::nextStep ( )

◆ updateLOS()

void Creature_Knowledge::updateLOS ( )

◆ updateThreat()

void Creature_Knowledge::updateThreat ( short int  threatX,
short int  threatY 
)

Member Data Documentation

◆ currentGoal

HasXY Creature_Knowledge::currentGoal

◆ p

Pathing_Local Creature_Knowledge::p

◆ pathIndex

unsigned int Creature_Knowledge::pathIndex

◆ threatLocation

HasXY Creature_Knowledge::threatLocation

◆ vVisibleTiles

Vector<LocalTile*> Creature_Knowledge::vVisibleTiles

◆ vVisitedTiles

Vector<HasXY*> Creature_Knowledge::vVisitedTiles

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