Planeshift
Public Member Functions | Protected Member Functions | Protected Attributes

LootEntrySet Class Reference

This class stores an array of LootEntry and calculates required loot on a newly dead mob. More...

#include <spawnmanager.h>

List of all members.

Public Member Functions

void AddLootEntry (LootEntry *entry)
 This adds another item to the entries array.
void CreateLoot (psCharacter *character, size_t numModifiers=0)
 This calculates the loot for the killed character, given the current set of loot entries, and adds them to the character as lootable inventory.
 LootEntrySet (int idx, LootRandomizer *lr)
 ~LootEntrySet ()

Protected Member Functions

void CreateMultipleLoot (psCharacter *chr, size_t numModifiers=0)
void CreateSingleLoot (psCharacter *chr)

Protected Attributes

csArray< LootEntry * > entries
int id
LootRandomizerlootRandomizer
float total_prob

Detailed Description

This class stores an array of LootEntry and calculates required loot on a newly dead mob.

Definition at line 241 of file spawnmanager.h.


Constructor & Destructor Documentation

LootEntrySet::LootEntrySet ( int  idx,
LootRandomizer lr 
) [inline]

Definition at line 253 of file spawnmanager.h.

LootEntrySet::~LootEntrySet ( )

Member Function Documentation

void LootEntrySet::AddLootEntry ( LootEntry entry)

This adds another item to the entries array.

void LootEntrySet::CreateLoot ( psCharacter character,
size_t  numModifiers = 0 
)

This calculates the loot for the killed character, given the current set of loot entries, and adds them to the character as lootable inventory.

Parameters:
characterthe character who has been killed
numModifiersmax number of modifiers to use
void LootEntrySet::CreateMultipleLoot ( psCharacter chr,
size_t  numModifiers = 0 
) [protected]
void LootEntrySet::CreateSingleLoot ( psCharacter chr) [protected]

Member Data Documentation

Definition at line 245 of file spawnmanager.h.

int LootEntrySet::id [protected]

Definition at line 244 of file spawnmanager.h.

Definition at line 247 of file spawnmanager.h.

Definition at line 246 of file spawnmanager.h.


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