UFO: Alien Invasion
forbiddenList_t Struct Reference

A list of locations that cannot be moved to. More...

#include <grid.h>

Collaboration diagram for forbiddenList_t:
Collaboration graph

Public Member Functions

 forbiddenList_s ()
 
void add (pos3_t pos, byte *entSize)
 
void reset ()
 
pos_t ** getNext (pos_t **prev)
 
actorSizeEnum_t getEntSize (pos_t **current)
 

Private Attributes

pos_tfbList [MAX_FORBIDDENLIST]
 
int fbListLength
 

Detailed Description

A list of locations that cannot be moved to.

Note
Pointer to le->pos or edict->pos followed by pointer to le->fieldSize or edict->fieldSize
See also
CL_BuildForbiddenList

Definition at line 35 of file grid.h.

Member Function Documentation

◆ add()

void forbiddenList_t::add ( pos3_t  pos,
byte entSize 
)
inline

Definition at line 44 of file grid.h.

References MAX_FORBIDDENLIST, and Sys_Error().

Referenced by CL_BuildForbiddenList(), G_BuildForbiddenList(), and TEST_F().

◆ forbiddenList_s()

forbiddenList_t::forbiddenList_s ( )
inline

Definition at line 41 of file grid.h.

◆ getEntSize()

actorSizeEnum_t forbiddenList_t::getEntSize ( pos_t **  current)
inline

Definition at line 64 of file grid.h.

Referenced by Grid_CheckForbidden().

◆ getNext()

pos_t ** forbiddenList_t::getNext ( pos_t **  prev)
inline

Definition at line 54 of file grid.h.

Referenced by Grid_CheckForbidden().

◆ reset()

void forbiddenList_t::reset ( )
inline

Definition at line 51 of file grid.h.

Referenced by CL_BuildForbiddenList(), G_BuildForbiddenList(), and TEST_F().

Field Documentation

◆ fbList

pos_t* forbiddenList_t::fbList[MAX_FORBIDDENLIST]
private

Definition at line 37 of file grid.h.

◆ fbListLength

int forbiddenList_t::fbListLength
private

Current length of fbList.

Definition at line 38 of file grid.h.


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