Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
ZoneBlock Class Reference

#include <AIPathfind.h>

Public Member Functions

 ZoneBlock ()
 
 ~ZoneBlock ()
 
void blockCalculateZones (PathfindCell **map, PathfindLayer layers[], const IRegion2D &bounds)
 Does zone calculations.
 
zoneStorageType getEffectiveZone (LocomotorSurfaceTypeMask acceptableSurfaces, Bool crusher, zoneStorageType zone) const
 
void clearMarkedPassable (void)
 
Bool isPassable (void)
 
void setPassable (Bool pass)
 
Bool getInteractsWithBridge (void) const
 
void setInteractsWithBridge (Bool interacts)
 

Protected Member Functions

void allocateZones (void)
 
void freeZones (void)
 

Protected Attributes

ICoord2D m_cellOrigin
 
zoneStorageType m_firstZone
 
UnsignedShort m_numZones
 
UnsignedShort m_zonesAllocated
 
zoneStorageTypem_groundCliffZones
 
zoneStorageTypem_groundWaterZones
 
zoneStorageTypem_groundRubbleZones
 
zoneStorageTypem_crusherZones
 
Bool m_interactsWithBridge
 
Bool m_markedPassable
 

Detailed Description

This class is a helper class for zone manager. It maintains information regarding the LocomotorSurfaceTypeMask equivalencies within a ZONE_BLOCK_SIZE x ZONE_BLOCK_SIZE area of cells. This is used in hierarchical pathfinding to find the best coarse path at the block level.

Definition at line 452 of file AIPathfind.h.

Constructor & Destructor Documentation

◆ ZoneBlock()

ZoneBlock::ZoneBlock ( )

Definition at line 1951 of file AIPathfind.cpp.

◆ ~ZoneBlock()

ZoneBlock::~ZoneBlock ( )

Definition at line 1969 of file AIPathfind.cpp.

Member Function Documentation

◆ allocateZones()

void ZoneBlock::allocateZones ( void )
protected

Definition at line 2130 of file AIPathfind.cpp.

◆ blockCalculateZones()

void ZoneBlock::blockCalculateZones ( PathfindCell ** map,
PathfindLayer layers[],
const IRegion2D & bounds )

Does zone calculations.

Definition at line 1996 of file AIPathfind.cpp.

◆ clearMarkedPassable()

void ZoneBlock::clearMarkedPassable ( void )
inline

Definition at line 462 of file AIPathfind.h.

◆ freeZones()

void ZoneBlock::freeZones ( void )
protected

Definition at line 1974 of file AIPathfind.cpp.

◆ getEffectiveZone()

zoneStorageType ZoneBlock::getEffectiveZone ( LocomotorSurfaceTypeMask acceptableSurfaces,
Bool crusher,
zoneStorageType zone ) const

Definition at line 2066 of file AIPathfind.cpp.

◆ getInteractsWithBridge()

Bool ZoneBlock::getInteractsWithBridge ( void ) const
inline

Definition at line 466 of file AIPathfind.h.

◆ isPassable()

Bool ZoneBlock::isPassable ( void )
inline

Definition at line 463 of file AIPathfind.h.

◆ setInteractsWithBridge()

void ZoneBlock::setInteractsWithBridge ( Bool interacts)
inline

Definition at line 467 of file AIPathfind.h.

◆ setPassable()

void ZoneBlock::setPassable ( Bool pass)
inline

Definition at line 464 of file AIPathfind.h.

Member Data Documentation

◆ m_cellOrigin

ICoord2D ZoneBlock::m_cellOrigin
protected

Definition at line 474 of file AIPathfind.h.

◆ m_crusherZones

zoneStorageType* ZoneBlock::m_crusherZones
protected

Definition at line 485 of file AIPathfind.h.

◆ m_firstZone

zoneStorageType ZoneBlock::m_firstZone
protected

Definition at line 476 of file AIPathfind.h.

◆ m_groundCliffZones

zoneStorageType* ZoneBlock::m_groundCliffZones
protected

Definition at line 482 of file AIPathfind.h.

◆ m_groundRubbleZones

zoneStorageType* ZoneBlock::m_groundRubbleZones
protected

Definition at line 484 of file AIPathfind.h.

◆ m_groundWaterZones

zoneStorageType* ZoneBlock::m_groundWaterZones
protected

Definition at line 483 of file AIPathfind.h.

◆ m_interactsWithBridge

Bool ZoneBlock::m_interactsWithBridge
protected

Definition at line 486 of file AIPathfind.h.

◆ m_markedPassable

Bool ZoneBlock::m_markedPassable
protected

Definition at line 487 of file AIPathfind.h.

◆ m_numZones

UnsignedShort ZoneBlock::m_numZones
protected

Definition at line 477 of file AIPathfind.h.

◆ m_zonesAllocated

UnsignedShort ZoneBlock::m_zonesAllocated
protected

Definition at line 481 of file AIPathfind.h.


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