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

#include <Armor.h>

Public Member Functions

 ArmorTemplate ()
 
void clear ()
 
Real adjustDamage (DamageType t, Real damage) const
 

Static Public Member Functions

static void parseArmorCoefficients (INI *ini, void *instance, void *, const void *userData)
 

Detailed Description

An Armor encapsulates the a particular type of actual modifier to damage taken, in order to simulate different materials, and to help make game balance easier to adjust.

Definition at line 49 of file Armor.h.

Constructor & Destructor Documentation

◆ ArmorTemplate()

ArmorTemplate::ArmorTemplate ( )

Definition at line 52 of file Armor.cpp.

Member Function Documentation

◆ adjustDamage()

Real ArmorTemplate::adjustDamage ( DamageType t,
Real damage ) const

This is the real "meat" of the class: given a damage type and amount, adjust the damage and return the amount that should be dealt.

Definition at line 67 of file Armor.cpp.

◆ clear()

void ArmorTemplate::clear ( )

Definition at line 58 of file Armor.cpp.

◆ parseArmorCoefficients()

void ArmorTemplate::parseArmorCoefficients ( INI * ini,
void * instance,
void * ,
const void * userData )
static

Definition at line 83 of file Armor.cpp.


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