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

#include <PartitionManager.h>

Inherits Snapshot.

Public Member Functions

 PartitionCell ()
 
void init (Int x, Int y, Real loZ, Real hiZ)
 
 ~PartitionCell ()
 
void crc (Xfer *xfer)
 
void xfer (Xfer *xfer)
 
void loadPostProcess (void)
 
Int getCoiCount () const
 return number of COIs touching this cell.
 
Int getCellX () const
 
Int getCellY () const
 
void addLooker (Int playerIndex)
 
void removeLooker (Int playerIndex)
 
void addShrouder (Int playerIndex)
 
void removeShrouder (Int playerIndex)
 
CellShroudStatus getShroudStatusForPlayer (Int playerIndex) const
 
UnsignedInt getThreatValue (Int playerIndex)
 
void addThreatValue (Int playerIndex, UnsignedInt threatValue)
 
void removeThreatValue (Int playerIndex, UnsignedInt threatValue)
 
UnsignedInt getCashValue (Int playerIndex)
 
void addCashValue (Int playerIndex, UnsignedInt cashValue)
 
void removeCashValue (Int playerIndex, UnsignedInt cashValue)
 
void invalidateShroudedStatusForAllCois (Int playerIndex)
 
Real getLoTerrain () const
 
Real getHiTerrain () const
 
void getCellCenterPos (Real &x, Real &y)
 
CellAndObjectIntersectiongetFirstCoiInCell ()
 
void friend_addToCellList (CellAndObjectIntersection *coi)
 
void friend_removeFromCellList (CellAndObjectIntersection *coi)
 
- Public Member Functions inherited from Snapshot
 Snapshot (void)
 
 ~Snapshot (void)
 

Detailed Description

The world's terrain is partitioned into a large grid of Partition Cells. The Cell is the fundamental unit of space in the Partition Manager.

Definition at line 296 of file PartitionManager.h.

Constructor & Destructor Documentation

◆ PartitionCell()

PartitionCell::PartitionCell ( )

Definition at line 1223 of file PartitionManager.cpp.

◆ ~PartitionCell()

PartitionCell::~PartitionCell ( )

Definition at line 1256 of file PartitionManager.cpp.

Member Function Documentation

◆ addCashValue()

void PartitionCell::addCashValue ( Int playerIndex,
UnsignedInt cashValue )

Definition at line 1437 of file PartitionManager.cpp.

◆ addLooker()

void PartitionCell::addLooker ( Int playerIndex)

Definition at line 1272 of file PartitionManager.cpp.

◆ addShrouder()

void PartitionCell::addShrouder ( Int playerIndex)

Definition at line 1339 of file PartitionManager.cpp.

◆ addThreatValue()

void PartitionCell::addThreatValue ( Int playerIndex,
UnsignedInt threatValue )

Definition at line 1404 of file PartitionManager.cpp.

◆ crc()

void PartitionCell::crc ( Xfer * xfer)
virtual

CRC

Implements Snapshot.

Definition at line 1505 of file PartitionManager.cpp.

◆ friend_addToCellList()

void PartitionCell::friend_addToCellList ( CellAndObjectIntersection * coi)

Definition at line 1461 of file PartitionManager.cpp.

◆ friend_removeFromCellList()

void PartitionCell::friend_removeFromCellList ( CellAndObjectIntersection * coi)

Definition at line 1471 of file PartitionManager.cpp.

◆ getCashValue()

UnsignedInt PartitionCell::getCashValue ( Int playerIndex)

Definition at line 1428 of file PartitionManager.cpp.

◆ getCellCenterPos()

void PartitionCell::getCellCenterPos ( Real & x,
Real & y )

Definition at line 1481 of file PartitionManager.cpp.

◆ getCellX()

Int PartitionCell::getCellX ( ) const
inline

Definition at line 328 of file PartitionManager.h.

◆ getCellY()

Int PartitionCell::getCellY ( ) const
inline

Definition at line 329 of file PartitionManager.h.

◆ getCoiCount()

Int PartitionCell::getCoiCount ( ) const
inline

return number of COIs touching this cell.

Definition at line 327 of file PartitionManager.h.

◆ getFirstCoiInCell()

CellAndObjectIntersection * PartitionCell::getFirstCoiInCell ( )
inline

Definition at line 355 of file PartitionManager.h.

◆ getHiTerrain()

Real PartitionCell::getHiTerrain ( ) const
inline

Definition at line 350 of file PartitionManager.h.

◆ getLoTerrain()

Real PartitionCell::getLoTerrain ( ) const
inline

Definition at line 349 of file PartitionManager.h.

◆ getShroudStatusForPlayer()

CellShroudStatus PartitionCell::getShroudStatusForPlayer ( Int playerIndex) const

Definition at line 1382 of file PartitionManager.cpp.

◆ getThreatValue()

UnsignedInt PartitionCell::getThreatValue ( Int playerIndex)

Definition at line 1395 of file PartitionManager.cpp.

◆ init()

void PartitionCell::init ( Int x,
Int y,
Real loZ,
Real hiZ )
inline

Definition at line 316 of file PartitionManager.h.

◆ invalidateShroudedStatusForAllCois()

void PartitionCell::invalidateShroudedStatusForAllCois ( Int playerIndex)

Definition at line 1263 of file PartitionManager.cpp.

◆ loadPostProcess()

void PartitionCell::loadPostProcess ( void )
virtual

Load post process

Implements Snapshot.

Definition at line 1533 of file PartitionManager.cpp.

◆ removeCashValue()

void PartitionCell::removeCashValue ( Int playerIndex,
UnsignedInt cashValue )

Definition at line 1449 of file PartitionManager.cpp.

◆ removeLooker()

void PartitionCell::removeLooker ( Int playerIndex)

Definition at line 1303 of file PartitionManager.cpp.

◆ removeShrouder()

void PartitionCell::removeShrouder ( Int playerIndex)

Definition at line 1366 of file PartitionManager.cpp.

◆ removeThreatValue()

void PartitionCell::removeThreatValue ( Int playerIndex,
UnsignedInt threatValue )

Definition at line 1416 of file PartitionManager.cpp.

◆ xfer()

void PartitionCell::xfer ( Xfer * xfer)
virtual

Xfer Method

Implements Snapshot.

Definition at line 1517 of file PartitionManager.cpp.


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