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

#include <Damage.h>

Inherits Snapshot.

Public Attributes

DamageInfoInput in
 inputs for the damage info
 
DamageInfoOutput out
 results for the damage occurrence
 

Protected Member Functions

virtual void crc (Xfer *xfer)
 run the "light" crc check on this data structure
 
virtual void xfer (Xfer *xfer)
 
virtual void loadPostProcess (void)
 

Additional Inherited Members

- Public Member Functions inherited from Snapshot
 Snapshot (void)
 
 ~Snapshot (void)
 

Detailed Description

DamageInfo is a descriptor of damage we're trying to inflict. The structure is divided up into two parts, inputs and outputs.

INPUTS: You must provide valid values for these fields in order for damage calculation to correctly take place OUTPUT: Upon returning from damage issuing functions, the output fields will be filled with the results of the damage occurrence

Definition at line 359 of file Damage.h.

Member Function Documentation

◆ crc()

virtual void DamageInfo::crc ( Xfer * xfer)
inlineprotectedvirtual

run the "light" crc check on this data structure

Implements Snapshot.

Definition at line 369 of file Damage.h.

◆ loadPostProcess()

virtual void DamageInfo::loadPostProcess ( void )
inlineprotectedvirtual

post process phase for loading save games. All save systems have their xfer run using XferLoad mode, and then all systems each have their post process run

Implements Snapshot.

Definition at line 371 of file Damage.h.

◆ xfer()

void DamageInfo::xfer ( Xfer * xfer)
protectedvirtual

Xfer method Version Info: 1: Initial version

Implements Snapshot.

Definition at line 99 of file Damage.cpp.

Member Data Documentation

◆ in

DamageInfoInput DamageInfo::in

inputs for the damage info

Definition at line 364 of file Damage.h.

◆ out

DamageInfoOutput DamageInfo::out

results for the damage occurrence

Definition at line 365 of file Damage.h.


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