Planeshift
RandomizedOverlay Class Reference

Stores the randomized stats from the loot randomizer, it could be used to apply any global special effect which is able to change various properties of the item: cost, mesh, name... More...

#include <psitem.h>

Public Member Functions

 RandomizedOverlay ()
 Constructor. More...
 
 ~RandomizedOverlay ()
 Destructor. More...
 

Public Attributes

bool active
 Notifies if this overlay is active and should be applied. More...
 
float damageStats [PSITEMSTATS_DAMAGETYPE_COUNT]
 Damage/protection stats changed by the loot modifiers rules. More...
 
ApplicativeScriptequip_script
 Equip script for this item overriding the main one from loot modifiers rules. More...
 
csString icon
 Overriden icon of this item from the basic one. More...
 
float latency
 Latency of the weapon changed by the loot modifiers rules. More...
 
csString mesh
 Overriden mesh of this item from the basic one. More...
 
csString name
 The name which should be replaced for this randomized item. More...
 
psMoney price
 Price calculated from the loot modifiers rules which overlays the basic one. More...
 
csArray< ItemRequirementreqs
 Array of all the stat prerequisites needed to equip this item. More...
 
float weight
 Weigth of the item changed by the loot modifier rules. More...
 

Detailed Description

Stores the randomized stats from the loot randomizer, it could be used to apply any global special effect which is able to change various properties of the item: cost, mesh, name...

This makes up a 3 levels modification of a single item in order of priority: The first level is the specific instance modifications: like name or descriptions The second level is the specific instance modifications coming from the loot modifiers table (probably should change the names when they will be used also to do changes to crafted items) The third level is the generic item stats. The active boolean variables is mostly an optimization to avoid checking if the overlay has data inside.

Definition at line 171 of file psitem.h.

Constructor & Destructor Documentation

RandomizedOverlay::RandomizedOverlay ( )

Constructor.

RandomizedOverlay::~RandomizedOverlay ( )

Destructor.

Member Data Documentation

bool RandomizedOverlay::active

Notifies if this overlay is active and should be applied.

Definition at line 176 of file psitem.h.

float RandomizedOverlay::damageStats[PSITEMSTATS_DAMAGETYPE_COUNT]

Damage/protection stats changed by the loot modifiers rules.

Definition at line 180 of file psitem.h.

ApplicativeScript* RandomizedOverlay::equip_script

Equip script for this item overriding the main one from loot modifiers rules.

Definition at line 181 of file psitem.h.

csString RandomizedOverlay::icon

Overriden icon of this item from the basic one.

Definition at line 185 of file psitem.h.

float RandomizedOverlay::latency

Latency of the weapon changed by the loot modifiers rules.

Definition at line 179 of file psitem.h.

csString RandomizedOverlay::mesh

Overriden mesh of this item from the basic one.

Definition at line 184 of file psitem.h.

csString RandomizedOverlay::name

The name which should be replaced for this randomized item.

Definition at line 177 of file psitem.h.

psMoney RandomizedOverlay::price

Price calculated from the loot modifiers rules which overlays the basic one.

Definition at line 182 of file psitem.h.

csArray<ItemRequirement> RandomizedOverlay::reqs

Array of all the stat prerequisites needed to equip this item.

Definition at line 183 of file psitem.h.

float RandomizedOverlay::weight

Weigth of the item changed by the loot modifier rules.

Definition at line 178 of file psitem.h.


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