UFO: Alien Invasion
Loading...
Searching...
No Matches
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 fbList, fbListLength, MAX_FORBIDDENLIST, and Sys_Error().

◆ forbiddenList_s()

forbiddenList_t::forbiddenList_s ( )
inline

Definition at line 41 of file grid.h.

References reset().

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

References fbList, and fbListLength.

Referenced by Grid_CheckForbidden().

◆ reset()

void forbiddenList_t::reset ( )
inline

Definition at line 51 of file grid.h.

References fbListLength.

Referenced by forbiddenList_s().

Field Documentation

◆ fbList

pos_t* forbiddenList_t::fbList[MAX_FORBIDDENLIST]
private

Definition at line 37 of file grid.h.

Referenced by add(), and getNext().

◆ fbListLength

int forbiddenList_t::fbListLength
private

Current length of fbList.

Definition at line 38 of file grid.h.

Referenced by add(), getNext(), and reset().


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