UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Routing Class Reference

#include <typedefs.h>

Public Member Functions

 Routing ()
 
void init ()
 
void setFloor (const int actorSize, const int x, const int y, const int z, const int val)
 
signed char getFloor (const actorSizeEnum_t actorSize, const pos3_t pos) const
 
signed char getFloor (const actorSizeEnum_t actorSize, const int x, const int y, const int z) const
 
void setCeiling (const actorSizeEnum_t actorSize, const int x, const int y, const int z, const int val)
 
byte getCeiling (const int actorSize, const pos3_t pos) const
 
byte getCeiling (const int actorSize, const int x, const int y, const int z) const
 
void setFilled (const actorSizeEnum_t actorSize, const int x, const int y, const int lowZ, const int highZ)
 
void setConn (const int actorSize, const int x, const int y, const int z, const int dir, const int val)
 
byte getConn (const int actorSize, const int x, const int y, const int z, const int dir) const
 
byte getConn (const actorSizeEnum_t actorSize, const pos3_t pos, const int dir) const
 
void setStepup (const int actorSize, const int x, const int y, const int z, const int dir, const int val)
 
byte getStepup (const int actorSize, const int x, const int y, const int z, const int dir) const
 
byte getStepupHeight (const int actorSize, const int x, const int y, const int z, const int dir) const
 return the value without the flags for z-level change More...
 
byte isStepDownLevel (const actorSizeEnum_t actorSize, const pos3_t pos, const int dir) const
 
byte isStepUpLevel (const actorSizeEnum_t actorSize, const pos3_t pos, const int dir) const
 
void copyPosData (const Routing &other, actorSizeEnum_t actorSize, const int x, const int y, const int z, const int sX, const int sY, const int sZ)
 

Private Attributes

routing_t routes [ACTOR_MAX_SIZE]
 

Detailed Description

Definition at line 248 of file typedefs.h.

Constructor & Destructor Documentation

Routing::Routing ( )
inline

Definition at line 253 of file typedefs.h.

References init().

Member Function Documentation

void Routing::copyPosData ( const Routing other,
actorSizeEnum_t  actorSize,
const int  x,
const int  y,
const int  z,
const int  sX,
const int  sY,
const int  sZ 
)
inline

note: not sure if this function qualifies for being inlined. But if we didn't, we'd have to link routing.cpp to radiant, which is probably worse.

Definition at line 317 of file typedefs.h.

References CORE_DIRECTIONS, getCeiling(), getConn(), getFloor(), getStepup(), setCeiling(), setConn(), setFloor(), and setStepup().

Referenced by CMod_LoadRouting().

byte Routing::getCeiling ( const int  actorSize,
const int  x,
const int  y,
const int  z 
) const
inline

Definition at line 275 of file typedefs.h.

References routing_s::getCeiling().

byte Routing::getConn ( const int  actorSize,
const int  x,
const int  y,
const int  z,
const int  dir 
) const
inline
byte Routing::getConn ( const actorSizeEnum_t  actorSize,
const pos3_t  pos,
const int  dir 
) const
inline

Definition at line 294 of file typedefs.h.

References routing_s::getConn().

signed char Routing::getFloor ( const actorSizeEnum_t  actorSize,
const int  x,
const int  y,
const int  z 
) const
inline

Definition at line 265 of file typedefs.h.

References routing_s::getFloor().

byte Routing::getStepup ( const int  actorSize,
const int  x,
const int  y,
const int  z,
const int  dir 
) const
inline

Definition at line 301 of file typedefs.h.

References routing_s::getStepup().

Referenced by copyPosData().

byte Routing::getStepupHeight ( const int  actorSize,
const int  x,
const int  y,
const int  z,
const int  dir 
) const
inline

return the value without the flags for z-level change

Definition at line 305 of file typedefs.h.

References routing_s::getStepup(), PATHFINDING_BIG_STEPDOWN, and PATHFINDING_BIG_STEPUP.

Referenced by Step::checkWalkingDirections().

void Routing::init ( void  )
inline

Definition at line 256 of file typedefs.h.

References OBJZERO.

Referenced by DoRouting(), and Routing().

byte Routing::isStepDownLevel ( const actorSizeEnum_t  actorSize,
const pos3_t  pos,
const int  dir 
) const
inline

Definition at line 308 of file typedefs.h.

References routing_s::getStepup(), and PATHFINDING_BIG_STEPDOWN.

Referenced by Step::checkWalkingDirections().

byte Routing::isStepUpLevel ( const actorSizeEnum_t  actorSize,
const pos3_t  pos,
const int  dir 
) const
inline

Definition at line 311 of file typedefs.h.

References routing_s::getStepup(), and PATHFINDING_BIG_STEPUP.

Referenced by Step::checkWalkingDirections().

void Routing::setCeiling ( const actorSizeEnum_t  actorSize,
const int  x,
const int  y,
const int  z,
const int  val 
)
inline

Definition at line 269 of file typedefs.h.

References routing_s::setCeiling().

Referenced by copyPosData(), and RT_CheckCell().

void Routing::setConn ( const int  actorSize,
const int  x,
const int  y,
const int  z,
const int  dir,
const int  val 
)
inline

Definition at line 288 of file typedefs.h.

References routing_s::setConn().

Referenced by CMod_RerouteMap(), copyPosData(), RT_ConnSetNoGo(), and RT_FillPassageData().

void Routing::setFilled ( const actorSizeEnum_t  actorSize,
const int  x,
const int  y,
const int  lowZ,
const int  highZ 
)
inline

Definition at line 279 of file typedefs.h.

References CELL_HEIGHT, i, routing_s::setCeiling(), and routing_s::setFloor().

Referenced by RT_CheckCell().

void Routing::setFloor ( const int  actorSize,
const int  x,
const int  y,
const int  z,
const int  val 
)
inline

Definition at line 259 of file typedefs.h.

References routing_s::setFloor().

Referenced by copyPosData(), and RT_CheckCell().

void Routing::setStepup ( const int  actorSize,
const int  x,
const int  y,
const int  z,
const int  dir,
const int  val 
)
inline

Definition at line 298 of file typedefs.h.

References routing_s::setStepup().

Referenced by copyPosData(), RT_ConnSetNoGo(), and RT_StepupSet().

Field Documentation

routing_t Routing::routes[ACTOR_MAX_SIZE]
private

routing table

Definition at line 250 of file typedefs.h.


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