Cavestory Mod API
Public Member Functions | Public Attributes | List of all members
CaveNet::DataStructures::GhostInfo Class Reference

Stores ghosting information for a single NPC. More...

#include <CaveNet_ExportedTypes.h>

Public Member Functions

 GhostInfo (int iNpcIDX, float iDistance)
 Constructor.
 
 GhostInfo ()
 Constructor 2.
 
bool operator< (const GhostInfo &other) const
 For SortedBinList compatibility. More...
 
bool operator<= (const GhostInfo &other) const
 For SortedBinList compatibility. More...
 
bool operator> (const GhostInfo &other) const
 For SortedBinList compatibility. More...
 
bool operator>= (const GhostInfo &other) const
 For SortedBinList compatibility. More...
 
bool operator!= (const GhostInfo &other) const
 For SortedBinList compatibility. More...
 
bool operator== (const GhostInfo &other) const
 For SortedBinList compatibility. More...
 

Public Attributes

short npc_idx
 The NPC index in #gNPC.
 
int ticks_alive
 How many ticks have passed since this ghost info was created. More...
 

Detailed Description

Stores ghosting information for a single NPC.

A class for storing client-specific ghost information for NPCs.

Member Function Documentation

◆ operator!=()

bool CaveNet::DataStructures::GhostInfo::operator!= ( const GhostInfo other) const
inline

For SortedBinList compatibility.

Parameters
otherThe other class to compare ourselves to.
Returns
Returns true if our ticks_alive are not equal to the other ghost's ticks_alive.

◆ operator<()

bool CaveNet::DataStructures::GhostInfo::operator< ( const GhostInfo other) const
inline

For SortedBinList compatibility.

Parameters
otherThe other class to compare ourselves to.
Returns
Returns true if our ticks_alive are less than the other ghost's ticks_alive.

◆ operator<=()

bool CaveNet::DataStructures::GhostInfo::operator<= ( const GhostInfo other) const
inline

For SortedBinList compatibility.

Parameters
otherThe other class to compare ourselves to.
Returns
Returns true if our ticks_alive are less than or equal to the other ghost's ticks_alive.

◆ operator==()

bool CaveNet::DataStructures::GhostInfo::operator== ( const GhostInfo other) const
inline

For SortedBinList compatibility.

Parameters
otherThe other class to compare ourselves to.
Returns
Returns true if our ticks_alive are equal to the other ghost's ticks_alive.

◆ operator>()

bool CaveNet::DataStructures::GhostInfo::operator> ( const GhostInfo other) const
inline

For SortedBinList compatibility.

Parameters
otherThe other class to compare ourselves to.
Returns
Returns true if our ticks_alive are greater than the other ghost's ticks_alive.

◆ operator>=()

bool CaveNet::DataStructures::GhostInfo::operator>= ( const GhostInfo other) const
inline

For SortedBinList compatibility.

Parameters
otherThe other class to compare ourselves to.
Returns
Returns true if our ticks_alive are greater than or equal to the other ghost's ticks_alive.

Member Data Documentation

◆ ticks_alive

int CaveNet::DataStructures::GhostInfo::ticks_alive

How many ticks have passed since this ghost info was created.

Used to score which ghost object gets scoped next.


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