UFO: Alien Invasion
Loading...
Searching...
No Matches
Routing Class Reference

#include <typedefs.h>

Collaboration diagram for Routing:
Collaboration graph

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
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::Routing ( )
inline

Definition at line 253 of file typedefs.h.

References init().

Referenced by copyPosData().

Member Function Documentation

◆ copyPosData()

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(), Routing(), setCeiling(), setConn(), setFloor(), and setStepup().

◆ getCeiling() [1/2]

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 routes.

◆ getCeiling() [2/2]

byte Routing::getCeiling ( const int actorSize,
const pos3_t pos ) const
inline

◆ getConn() [1/2]

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 routes.

◆ getConn() [2/2]

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

Definition at line 291 of file typedefs.h.

References routes.

Referenced by copyPosData().

◆ getFloor() [1/2]

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 routes.

◆ getFloor() [2/2]

signed char Routing::getFloor ( const actorSizeEnum_t actorSize,
const pos3_t pos ) const
inline

◆ getStepup()

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 routes.

Referenced by copyPosData().

◆ getStepupHeight()

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 PATHFINDING_BIG_STEPDOWN, PATHFINDING_BIG_STEPUP, and routes.

◆ init()

void Routing::init ( )
inline

Definition at line 256 of file typedefs.h.

References OBJZERO, and routes.

Referenced by Routing().

◆ isStepDownLevel()

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 PATHFINDING_BIG_STEPDOWN, and routes.

◆ isStepUpLevel()

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 PATHFINDING_BIG_STEPUP, and routes.

◆ setCeiling()

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 routes.

Referenced by copyPosData(), and RT_CheckCell().

◆ setConn()

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 routes.

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

◆ setFilled()

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, and routes.

Referenced by RT_CheckCell().

◆ setFloor()

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 routes.

Referenced by copyPosData(), and RT_CheckCell().

◆ setStepup()

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 routes.

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

Field Documentation

◆ routes


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