Core Rules
WoTC AD&D 2nd Edition -- Drakein API Reference
Loading...
Searching...
No Matches
IEncounterMonsterPackageOb.h File Reference

One group of monsters in an encounter. More...

#include "API.h"

Classes

class  CoreRules::IEncounterMonsterPackageOb
 One monster group inside an encounter. More...

Namespaces

namespace  CoreRules

Functions

IEncounterMonsterPackageObCoreRules::CreateEncounterMonsterPackageOb ()
 Factory for a standalone monster package.
void CoreRules::DestroyEncounterMonsterPackageOb (IEncounterMonsterPackageOb *p)
 Release a standalone monster package.

Detailed Description

One group of monsters in an encounter.

Each IEncounterOb carries an array of these. A package combines one monster type with a count (number of instances appearing) and a parallel array of pre-rolled HP entries (IEncounterMonHpOb).

The embedded monster is by-value – consumers mutate the monster's fields in place through the IMonsterOb* returned from GetMonsterDetails(), or replace the whole monster via CopyMonsterDetailsFrom(). The package owns its monster (it does NOT live in the global monster table).

m_count is stored independently of the HP-roll array size: a DM may set the count without pre-rolling HP, deferring rolls to play-time.