Public Member Functions | Public Attributes

CEncounterGroup Class Reference

List of all members.

Public Member Functions

 CEncounterGroup ()
uint GetModifiedQuantity (uint quantity)
 Gets the modified quantity for the group, basing on the value passed from zone.
uint GetCost (int ratio)
 Gets value needed to spawn group, knowing the ratio.
void SetAverageCost ()
 Sets the average vaule of the group, derived from ratio and objects.
CEncounterObjectNewObject ()
CEncounterObjectAddCritter (uint16 pid)
CEncounterObjectAddItem (uint16 pid)

Public Attributes

uint Index
uint TeamNum
uint Position
uint Spacing
uint DistMin
uint DistMax
uint RatioMin
uint RatioMax
uint Cost
float QuantityNight
float QuantityDay
array< CEncounterObjectObjects

Constructor & Destructor Documentation

CEncounterGroup (  ) 

Member Function Documentation

uint GetModifiedQuantity ( uint  quantity  ) 

Gets the modified quantity for the group, basing on the value passed from zone.

uint GetCost ( int  ratio  ) 

Gets value needed to spawn group, knowing the ratio.

void SetAverageCost (  ) 

Sets the average vaule of the group, derived from ratio and objects.

It must be called every time the group is defined, see InitGroupsCost().

CEncounterObject@ NewObject (  ) 
CEncounterObject@ AddCritter ( uint16  pid  ) 
CEncounterObject@ AddItem ( uint16  pid  ) 

Member Data Documentation

uint Index
uint TeamNum
uint Position
uint Spacing
uint DistMin
uint DistMax
uint RatioMin
uint RatioMax
uint Cost
float QuantityDay