xoreos  0.0.5
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
Engines::DragonAge2::Campaign Class Reference

#include <campaign.h>

Inheritance diagram for Engines::DragonAge2::Campaign:
Inheritance graph
[legend]
Collaboration diagram for Engines::DragonAge2::Campaign:
Collaboration graph
[legend]

Classes

struct  RIMNode
 A node in the RIM tree. More...
 

Public Member Functions

const Common::UStringgetUID () const
 Return the unique ID of this campaign. More...
 
const Aurora::LocStringgetName () const
 
const Aurora::LocStringgetDescription () const
 
const Common::UStringgetExtendsUID () const
 Return the UID of the campaign this campaign/content extends, if any. More...
 
bool isEnabled () const
 Is this Campaign enabled? More...
 
bool isBioWare () const
 Is this an original campaign by BioWare? More...
 
bool needsAuth () const
 Does this campaign need authorization from BioWare? More...
 
const Common::UStringgetAreaRIM (const Common::UString &area) const
 Return the RIM file containing this area. More...
 
const std::vector< Common::UString > & getAreas () const
 
AreagetCurrentArea () const
 Return the area the PC is currently in. More...
 
CreaturegetPC () const
 Return the currently playing PC. More...
 
bool isLoaded () const
 Is this campaign currently loaded? More...
 
void movePC (const Common::UString &area)
 Move the player character to this area. More...
 
void movePC (float x, float y, float z)
 Move the player character to this position within the current area. More...
 
void movePC (const Common::UString &area, float x, float y, float z)
 Move the player character to this position within this area. More...
 
- Public Member Functions inherited from Engines::DragonAge2::Object
 Object (ObjectType type=kObjectTypeInvalid)
 
virtual ~Object ()
 
ObjectType getType () const
 Return the exact type of the object. More...
 
virtual void show ()
 Show the object's model(s). More...
 
virtual void hide ()
 Hide the object's model(s). More...
 
const std::list< uint32 > & getIDs () const
 Return the object's model IDs. More...
 
const Common::UStringgetResRef () const
 Return the object's resource reference. More...
 
const Aurora::LocStringgetName () const
 Return the object's name. More...
 
const Aurora::LocStringgetDescription () const
 Return the object's description. More...
 
const Common::UStringgetConversation () const
 Return the object's default conversation (DLG). More...
 
const Common::UStringgetNonLocalizedName () const
 Return the object's non-localized name. More...
 
void setNonLocalizedName (const Common::UString &name)
 Set the object's non-localized name. More...
 
bool isStatic () const
 Is the object static (not manipulable at all)? More...
 
bool isUsable () const
 Can the object be used by the PC? More...
 
bool isClickable () const
 Can the player click the object? More...
 
virtual void getPosition (float &x, float &y, float &z) const
 Return the object's position within its area. More...
 
virtual void getOrientation (float &x, float &y, float &z, float &angle) const
 Return the object's orientation. More...
 
virtual void setPosition (float x, float y, float z)
 Set the object's position within its area. More...
 
virtual void setOrientation (float x, float y, float z, float angle)
 Set the object's orientation. More...
 
virtual void enter ()
 The cursor entered the object. More...
 
virtual void highlight (bool enabled)
 (Un)Highlight the object. More...
 
virtual bool click (Object *triggerer=0)
 The object was clicked. More...
 
- Public Member Functions inherited from Aurora::NWScript::Object
 Object ()
 
uint32 getID () const
 
const Common::UStringgetTag () const
 
- Public Member Functions inherited from Aurora::NWScript::VariableContainer
 VariableContainer ()
 
virtual ~VariableContainer ()
 
bool hasVariable (const Common::UString &var) const
 
VariablegetVariable (const Common::UString &var, Type type=kTypeVoid)
 
const VariablegetVariable (const Common::UString &var) const
 
void setVariable (const Common::UString &var, const Variable &value)
 
void removeVariable (const Common::UString &var)
 
void clearVariables ()
 
- Public Member Functions inherited from Engines::DragonAge2::ScriptContainer
 ScriptContainer ()
 
 ~ScriptContainer ()
 
const Common::UStringgetScript () const
 
bool hasScript () const
 
void enableEvent (EventType event, bool enabled)
 Enable/Disable the handling of a specific event. More...
 
void enableEvents (bool enabled)
 Enable/Disable the handling of all events. More...
 
bool runScript (EventType event, const Aurora::NWScript::ObjectReference owner=Aurora::NWScript::ObjectReference(), const Aurora::NWScript::ObjectReference triggerer=Aurora::NWScript::ObjectReference())
 
bool runScript (Event &event)
 
- Public Member Functions inherited from Engines::DragonAge2::ObjectContainer
 ObjectContainer ()
 
 ~ObjectContainer ()
 
void clearObjects ()
 
void addObject (DragonAge2::Object &object)
 Add an object to this container. More...
 
void removeObject (DragonAge2::Object &object)
 Remove an object from this container. More...
 
::Aurora::NWScript::ObjectgetFirstObjectByType (ObjectType type) const
 Return the first object of this type. More...
 
::Aurora::NWScript::ObjectSearchfindObjectsByType (ObjectType type) const
 Return a search context to iterate over all objects of this type. More...
 
- Public Member Functions inherited from Aurora::NWScript::ObjectContainer
 ObjectContainer ()
 
 ~ObjectContainer ()
 
void clearObjects ()
 
void addObject (Object &object)
 Add an object to this container. More...
 
void removeObject (Object &object)
 Remove an object from this container. More...
 
ObjectgetObjectByID (uint32 id) const
 Find a specific object by ID. More...
 
ObjectgetFirstObject () const
 Return the first object. More...
 
ObjectgetFirstObjectByTag (const Common::UString &tag) const
 Return the first object with this tag. More...
 
ObjectSearchfindObjects () const
 Return a search context to iterate over all objects. More...
 
ObjectSearchfindObjectsByTag (const Common::UString &tag) const
 Return a search context to iterate over all objects with this tag. More...
 

Private Types

typedef std::map< Common::UString, const RIMNode * > AreaMap
 Map of area RIMNodes indexed by the area resref. More...
 
typedef std::list< Events::EventEventQueue
 

Private Member Functions

 Campaign (Game &game, const Common::UString &cifPath="", const Common::UString &manifestPath="", const Common::UString &addinBase="")
 
 ~Campaign ()
 
void read (const Common::UString &cifPath, const Common::UString &manifestPath)
 
void readCIFStatic (const Common::UString &path)
 
RIMNodereadRIMs (const Aurora::GFF4Struct &node, const RIMNode *parent=0)
 
void readManifest (const Common::UString &path)
 
void addAreaName (const RIMNode &node)
 
void readCIFDynamic (const Common::UString &path)
 
void loadResources ()
 
void load ()
 Load the campaign for playing. More...
 
void unload ()
 Unload the campaign after playing. More...
 
void enter (Creature &pc)
 Enter the campaign, starting it. More...
 
void leave ()
 Leave the campaign, ending it. More...
 
void addEvent (const Events::Event &event)
 Add a single event for consideration into the area event queue. More...
 
void processEventQueue ()
 Process the current event queue. More...
 
void loadArea ()
 
void unloadArea ()
 
bool changeArea ()
 
void enterArea (bool startArea=false)
 
void leaveArea ()
 
void handleEvents ()
 

Private Attributes

Game_game
 
Common::UString _uid
 
Common::UString _cifPath
 
Common::UString _addinBase
 
Aurora::LocString _name
 
Aurora::LocString _description
 
Common::UString _extends
 
bool _enabled
 
bool _bioware
 
bool _needsAuth
 
uint32 _priority
 
uint32 _format
 
uint32 _state
 
Common::UString _entryArea
 
Common::UString _entryAreaList
 
Common::UString _entryScript
 
Common::UString _entryClientScript
 
float _entryPosition [3]
 
float _entryOrientation [3]
 
std::vector< Common::UString_packages
 
Common::ScopedPtr< RIMNode_rimRoot
 
AreaMap _areaMap
 
std::vector< Common::UString_areas
 
bool _loaded
 
ChangeList _resources
 
ChangeList _tlks
 
Creature_pc
 The player character we use. More...
 
Common::UString _newArea
 The new area to enter. More...
 
Common::ScopedPtr< Area_currentArea
 The current area. More...
 
EventQueue _eventQueue
 

Friends

class Campaigns
 
template<typename T >
void Common::DeallocatorDefault::destroy (T *)
 

Additional Inherited Members

- Static Public Member Functions inherited from Engines::DragonAge2::ScriptContainer
static bool runScript (const Common::UString &script, EventType event, const Aurora::NWScript::ObjectReference owner=Aurora::NWScript::ObjectReference(), const Aurora::NWScript::ObjectReference triggerer=Aurora::NWScript::ObjectReference())
 
static bool runScript (const Common::UString &script, EventType event, const Aurora::NWScript::ScriptState &state, const Aurora::NWScript::ObjectReference owner=Aurora::NWScript::ObjectReference(), const Aurora::NWScript::ObjectReference triggerer=Aurora::NWScript::ObjectReference())
 
static bool runScript (const Common::UString &script, Event &event)
 
static bool runScript (const Common::UString &script, Event &event, const Aurora::NWScript::ScriptState &state)
 
- Static Public Member Functions inherited from Engines::DragonAge2::ObjectContainer
static DragonAge2::ObjecttoObject (::Aurora::NWScript::Object *object)
 
static AreatoArea (Aurora::NWScript::Object *object)
 
static WaypointtoWaypoint (Aurora::NWScript::Object *object)
 
static PlaceabletoPlaceable (Aurora::NWScript::Object *object)
 
static CreaturetoCreature (Aurora::NWScript::Object *object)
 
static EventtoEvent (Aurora::NWScript::EngineType *engineType)
 
- Protected Member Functions inherited from Engines::DragonAge2::Object
void syncPosition ()
 
void syncOrientation ()
 
void readVarTable (const Aurora::GFF3List &varTable)
 
void readVarTable (const Aurora::GFF3Struct &gff)
 
void readVarTable (const Aurora::GFF4List &varTable)
 
void readVarTable (const Aurora::GFF4Struct &gff)
 
- Protected Member Functions inherited from Engines::DragonAge2::ScriptContainer
void clearScript ()
 
void readScript (const Aurora::GFF3Struct &gff)
 
void readScript (const Aurora::GFF4Struct &gff)
 
- Protected Member Functions inherited from Aurora::NWScript::ObjectContainer
void lock ()
 
void unlock ()
 
- Protected Attributes inherited from Engines::DragonAge2::Object
ObjectType _type
 The object's type. More...
 
Common::UString _resRef
 The object's resource reference. More...
 
Aurora::LocString _name
 The object's display name. More...
 
Aurora::LocString _description
 The object's description. More...
 
Common::UString _nonLocalizedName
 The object's non-localized name. More...
 
Common::UString _conversation
 The object's default conversation. More...
 
Common::UString _soundSet
 The object's sound set. More...
 
bool _static
 Is the object static? More...
 
bool _usable
 Is the object usable? More...
 
std::list< uint32_ids
 The object's model IDs. More...
 
float _position [3]
 The object's position. More...
 
float _orientation [4]
 The object's orientation. More...
 
- Protected Attributes inherited from Aurora::NWScript::Object
uint32 _id
 
Common::UString _tag
 

Detailed Description

Definition at line 54 of file campaign.h.

Member Typedef Documentation

◆ AreaMap

Map of area RIMNodes indexed by the area resref.

Definition at line 117 of file campaign.h.

◆ EventQueue

Definition at line 119 of file campaign.h.

Constructor & Destructor Documentation

◆ Campaign()

Engines::DragonAge2::Campaign::Campaign ( Game game,
const Common::UString cifPath = "",
const Common::UString manifestPath = "",
const Common::UString addinBase = "" 
)
private

Definition at line 61 of file campaign.cpp.

References _entryOrientation, _entryPosition, and read().

Here is the call graph for this function:

◆ ~Campaign()

Engines::DragonAge2::Campaign::~Campaign ( )
private

Definition at line 79 of file campaign.cpp.

References unload().

Here is the call graph for this function:

Member Function Documentation

◆ addAreaName()

void Engines::DragonAge2::Campaign::addAreaName ( const RIMNode node)
private

◆ addEvent()

void Engines::DragonAge2::Campaign::addEvent ( const Events::Event event)
private

Add a single event for consideration into the area event queue.

Definition at line 483 of file campaign.cpp.

References _eventQueue.

Referenced by Engines::DragonAge2::Campaigns::handleEvents().

Here is the caller graph for this function:

◆ changeArea()

bool Engines::DragonAge2::Campaign::changeArea ( )
private

Definition at line 471 of file campaign.cpp.

References _currentArea, _newArea, enterArea(), and loadArea().

Referenced by processEventQueue().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ enter()

void Engines::DragonAge2::Campaign::enter ( Creature pc)
private

Enter the campaign, starting it.

Definition at line 418 of file campaign.cpp.

References _pc, enterArea(), isLoaded(), Engines::DragonAge2::kEventTypeEnter, Engines::DragonAge2::kEventTypeGameObjectsLoaded, Engines::DragonAge2::kEventTypeModuleStart, and Engines::DragonAge2::ScriptContainer::runScript().

Referenced by Engines::DragonAge2::Campaigns::enter().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ enterArea()

void Engines::DragonAge2::Campaign::enterArea ( bool  startArea = false)
private

◆ getAreaRIM()

const Common::UString & Engines::DragonAge2::Campaign::getAreaRIM ( const Common::UString area) const

Return the RIM file containing this area.

Definition at line 278 of file campaign.cpp.

References _areaMap, and Aurora::kEmptyString.

Referenced by Engines::DragonAge2::Console::cmdListAreas().

Here is the caller graph for this function:

◆ getAreas()

const std::vector< Common::UString > & Engines::DragonAge2::Campaign::getAreas ( ) const

Definition at line 288 of file campaign.cpp.

References _areas.

Referenced by Engines::DragonAge2::Console::cmdListAreas(), Engines::DragonAge2::Console::cmdLoadArea(), and Engines::DragonAge2::Console::updateAreas().

Here is the caller graph for this function:

◆ getCurrentArea()

Area * Engines::DragonAge2::Campaign::getCurrentArea ( ) const

Return the area the PC is currently in.

Definition at line 292 of file campaign.cpp.

References _currentArea.

Referenced by Engines::DragonAge2::Functions::getArea().

Here is the caller graph for this function:

◆ getDescription()

const Aurora::LocString & Engines::DragonAge2::Campaign::getDescription ( ) const

Definition at line 94 of file campaign.cpp.

References _description.

◆ getExtendsUID()

const Common::UString & Engines::DragonAge2::Campaign::getExtendsUID ( ) const

Return the UID of the campaign this campaign/content extends, if any.

Definition at line 98 of file campaign.cpp.

References _extends.

Referenced by Engines::DragonAge2::Campaigns::addCampaign().

Here is the caller graph for this function:

◆ getName()

const Aurora::LocString & Engines::DragonAge2::Campaign::getName ( ) const

Definition at line 90 of file campaign.cpp.

References _name.

Referenced by Engines::DragonAge2::Campaigns::loadCampaign().

Here is the caller graph for this function:

◆ getPC()

Creature * Engines::DragonAge2::Campaign::getPC ( ) const

Return the currently playing PC.

Definition at line 296 of file campaign.cpp.

References _pc.

Referenced by Engines::DragonAge2::Area::click(), Engines::DragonAge2::Functions::getHero(), and Engines::DragonAge2::Functions::isHero().

Here is the caller graph for this function:

◆ getUID()

const Common::UString & Engines::DragonAge2::Campaign::getUID ( ) const

Return the unique ID of this campaign.

Definition at line 86 of file campaign.cpp.

References _uid.

Referenced by Engines::DragonAge2::Campaigns::addCampaign(), Engines::DragonAge2::Campaigns::changeCampaign(), and Engines::DragonAge2::Campaigns::loadCampaign().

Here is the caller graph for this function:

◆ handleEvents()

void Engines::DragonAge2::Campaign::handleEvents ( )
private

Definition at line 499 of file campaign.cpp.

References _currentArea, and _eventQueue.

Referenced by processEventQueue().

Here is the caller graph for this function:

◆ isBioWare()

bool Engines::DragonAge2::Campaign::isBioWare ( ) const

Is this an original campaign by BioWare?

Definition at line 270 of file campaign.cpp.

References _bioware.

◆ isEnabled()

bool Engines::DragonAge2::Campaign::isEnabled ( ) const

Is this Campaign enabled?

Definition at line 266 of file campaign.cpp.

References _enabled.

Referenced by Engines::DragonAge2::Campaigns::addCampaign().

Here is the caller graph for this function:

◆ isLoaded()

bool Engines::DragonAge2::Campaign::isLoaded ( ) const

Is this campaign currently loaded?

Definition at line 300 of file campaign.cpp.

References _loaded.

Referenced by enter(), Engines::DragonAge2::Campaigns::isLoaded(), Engines::DragonAge2::Campaigns::isRunning(), and processEventQueue().

Here is the caller graph for this function:

◆ leave()

void Engines::DragonAge2::Campaign::leave ( )
privatevirtual

Leave the campaign, ending it.

Reimplemented from Engines::DragonAge2::Object.

Definition at line 432 of file campaign.cpp.

References _pc, Engines::DragonAge2::kEventTypeExit, leaveArea(), and Engines::DragonAge2::ScriptContainer::runScript().

Referenced by Engines::DragonAge2::Campaigns::leave(), and unload().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ leaveArea()

void Engines::DragonAge2::Campaign::leaveArea ( )
private

Definition at line 441 of file campaign.cpp.

References _currentArea, _pc, and Engines::DragonAge2::kEventTypeExit.

Referenced by leave(), and unloadArea().

Here is the caller graph for this function:

◆ load()

void Engines::DragonAge2::Campaign::load ( )
private

Load the campaign for playing.

Definition at line 345 of file campaign.cpp.

References _cifPath, _entryArea, _loaded, _name, _newArea, Aurora::NWScript::Object::_tag, _uid, Common::UString::c_str(), Aurora::LocString::getString(), loadArea(), loadResources(), readCIFDynamic(), and status().

Referenced by Engines::DragonAge2::Campaigns::loadCampaign().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadArea()

void Engines::DragonAge2::Campaign::loadArea ( )
private

Definition at line 459 of file campaign.cpp.

References _areaMap, _currentArea, _newArea, Common::UString::c_str(), Common::UString::empty(), and unloadArea().

Referenced by changeArea(), and load().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadResources()

void Engines::DragonAge2::Campaign::loadResources ( )
private

◆ movePC() [1/3]

void Engines::DragonAge2::Campaign::movePC ( const Common::UString area)

Move the player character to this area.

Definition at line 508 of file campaign.cpp.

References _newArea.

Referenced by Engines::DragonAge2::Console::cmdLoadArea(), Engines::DragonAge2::Functions::doAreaTransition(), and movePC().

Here is the caller graph for this function:

◆ movePC() [2/3]

void Engines::DragonAge2::Campaign::movePC ( float  x,
float  y,
float  z 
)

Move the player character to this position within the current area.

Definition at line 512 of file campaign.cpp.

References _pc, CameraMan, and Engines::DragonAge2::Creature::setPosition().

Here is the call graph for this function:

◆ movePC() [3/3]

void Engines::DragonAge2::Campaign::movePC ( const Common::UString area,
float  x,
float  y,
float  z 
)

Move the player character to this position within this area.

Definition at line 521 of file campaign.cpp.

References movePC().

Here is the call graph for this function:

◆ needsAuth()

bool Engines::DragonAge2::Campaign::needsAuth ( ) const

Does this campaign need authorization from BioWare?

Definition at line 274 of file campaign.cpp.

References _needsAuth.

◆ processEventQueue()

void Engines::DragonAge2::Campaign::processEventQueue ( )
private

Process the current event queue.

Definition at line 487 of file campaign.cpp.

References changeArea(), handleEvents(), and isLoaded().

Referenced by Engines::DragonAge2::Campaigns::handleEvents().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ read()

void Engines::DragonAge2::Campaign::read ( const Common::UString cifPath,
const Common::UString manifestPath 
)
private

Definition at line 102 of file campaign.cpp.

References _enabled, _entryArea, _extends, _format, _needsAuth, _state, _uid, Common::UString::empty(), Common::FilePath::getStem(), readCIFStatic(), and readManifest().

Referenced by Campaign().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readCIFDynamic()

void Engines::DragonAge2::Campaign::readCIFDynamic ( const Common::UString path)
private

◆ readCIFStatic()

void Engines::DragonAge2::Campaign::readCIFStatic ( const Common::UString path)
private

Definition at line 139 of file campaign.cpp.

References _description, _entryArea, _entryAreaList, _entryClientScript, _entryOrientation, _entryPosition, _entryScript, _name, _packages, Common::debugTag(), Engines::DragonAge2::kCIFID, Aurora::GFF4FieldNamesEnum::kGFF4CampaignCIFDescriptionCSCZ, Aurora::GFF4FieldNamesEnum::kGFF4CampaignCIFDescriptionDEDE, Aurora::GFF4FieldNamesEnum::kGFF4CampaignCIFDescriptionENUS, Aurora::GFF4FieldNamesEnum::kGFF4CampaignCIFDescriptionESES, Aurora::GFF4FieldNamesEnum::kGFF4CampaignCIFDescriptionFRFR, Aurora::GFF4FieldNamesEnum::kGFF4CampaignCIFDescriptionHUHU, Aurora::GFF4FieldNamesEnum::kGFF4CampaignCIFDescriptionITIT, Aurora::GFF4FieldNamesEnum::kGFF4CampaignCIFDescriptionPLPL, Aurora::GFF4FieldNamesEnum::kGFF4CampaignCIFDescriptionRURU, Aurora::GFF4FieldNamesEnum::kGFF4CampaignCIFDisplayNameCSCZ, Aurora::GFF4FieldNamesEnum::kGFF4CampaignCIFDisplayNameDEDE, Aurora::GFF4FieldNamesEnum::kGFF4CampaignCIFDisplayNameENUS, Aurora::GFF4FieldNamesEnum::kGFF4CampaignCIFDisplayNameESES, Aurora::GFF4FieldNamesEnum::kGFF4CampaignCIFDisplayNameFRFR, Aurora::GFF4FieldNamesEnum::kGFF4CampaignCIFDisplayNameHUHU, Aurora::GFF4FieldNamesEnum::kGFF4CampaignCIFDisplayNameITIT, Aurora::GFF4FieldNamesEnum::kGFF4CampaignCIFDisplayNamePLPL, Aurora::GFF4FieldNamesEnum::kGFF4CampaignCIFDisplayNameRURU, Aurora::GFF4FieldNamesEnum::kGFF4CampaignCIFEntryArea, Aurora::GFF4FieldNamesEnum::kGFF4CampaignCIFEntryAreaList, Aurora::GFF4FieldNamesEnum::kGFF4CampaignCIFEntryClientScript, Aurora::GFF4FieldNamesEnum::kGFF4CampaignCIFEntryOrientation, Aurora::GFF4FieldNamesEnum::kGFF4CampaignCIFEntryPosition, Aurora::GFF4FieldNamesEnum::kGFF4CampaignCIFEntryScript, Aurora::GFF4FieldNamesEnum::kGFF4CampaignCIFPackagesList, Aurora::kLanguageCzech, Aurora::kLanguageEnglish, Aurora::kLanguageFrench, Aurora::kLanguageGerman, Aurora::kLanguageHungarian, Aurora::kLanguageItalian, Aurora::kLanguagePolish, Aurora::kLanguageRussian, Aurora::kLanguageSpanish, Engines::DragonAge2::kVersion01, and Aurora::LocString::setString().

Referenced by read().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readManifest()

void Engines::DragonAge2::Campaign::readManifest ( const Common::UString path)
private

◆ readRIMs()

RIMNode* Engines::DragonAge2::Campaign::readRIMs ( const Aurora::GFF4Struct node,
const RIMNode parent = 0 
)
private

Referenced by readCIFDynamic().

Here is the caller graph for this function:

◆ unload()

void Engines::DragonAge2::Campaign::unload ( )
private

Unload the campaign after playing.

Definition at line 357 of file campaign.cpp.

References _areaMap, _areas, _currentArea, _game, _loaded, _resources, _rimRoot, _tlks, Engines::DragonAge2::ObjectContainer::clearObjects(), Engines::deindexResources(), leave(), TwoDAReg, and Engines::DragonAge2::Game::unloadTalkTables().

Referenced by Engines::DragonAge2::Campaigns::clean(), Engines::DragonAge2::Campaigns::unload(), and ~Campaign().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ unloadArea()

void Engines::DragonAge2::Campaign::unloadArea ( )
private

Definition at line 451 of file campaign.cpp.

References _currentArea, Engines::DragonAge2::ObjectContainer::clearObjects(), and leaveArea().

Referenced by loadArea().

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ Campaigns

friend class Campaigns
friend

Definition at line 213 of file campaign.h.

◆ Common::DeallocatorDefault::destroy

template<typename T >
void Common::DeallocatorDefault::destroy ( T *  )
friend

Member Data Documentation

◆ _addinBase

Common::UString Engines::DragonAge2::Campaign::_addinBase
private

Definition at line 127 of file campaign.h.

Referenced by loadResources().

◆ _areaMap

AreaMap Engines::DragonAge2::Campaign::_areaMap
private

Definition at line 153 of file campaign.h.

Referenced by getAreaRIM(), loadArea(), and unload().

◆ _areas

std::vector<Common::UString> Engines::DragonAge2::Campaign::_areas
private

Definition at line 155 of file campaign.h.

Referenced by getAreas(), and unload().

◆ _bioware

bool Engines::DragonAge2::Campaign::_bioware
private

Definition at line 135 of file campaign.h.

Referenced by isBioWare(), and readManifest().

◆ _cifPath

Common::UString Engines::DragonAge2::Campaign::_cifPath
private

Definition at line 126 of file campaign.h.

Referenced by load().

◆ _currentArea

Common::ScopedPtr<Area> Engines::DragonAge2::Campaign::_currentArea
private

The current area.

Definition at line 166 of file campaign.h.

Referenced by changeArea(), enterArea(), getCurrentArea(), handleEvents(), leaveArea(), loadArea(), unload(), and unloadArea().

◆ _description

Aurora::LocString Engines::DragonAge2::Campaign::_description
private

Definition at line 130 of file campaign.h.

Referenced by getDescription(), and readCIFStatic().

◆ _enabled

bool Engines::DragonAge2::Campaign::_enabled
private

Definition at line 134 of file campaign.h.

Referenced by isEnabled(), read(), and readManifest().

◆ _entryArea

Common::UString Engines::DragonAge2::Campaign::_entryArea
private

Definition at line 142 of file campaign.h.

Referenced by load(), read(), and readCIFStatic().

◆ _entryAreaList

Common::UString Engines::DragonAge2::Campaign::_entryAreaList
private

Definition at line 143 of file campaign.h.

Referenced by readCIFStatic().

◆ _entryClientScript

Common::UString Engines::DragonAge2::Campaign::_entryClientScript
private

Definition at line 145 of file campaign.h.

Referenced by readCIFStatic().

◆ _entryOrientation

float Engines::DragonAge2::Campaign::_entryOrientation[3]
private

Definition at line 148 of file campaign.h.

Referenced by Campaign(), enterArea(), and readCIFStatic().

◆ _entryPosition

float Engines::DragonAge2::Campaign::_entryPosition[3]
private

Definition at line 147 of file campaign.h.

Referenced by Campaign(), enterArea(), and readCIFStatic().

◆ _entryScript

Common::UString Engines::DragonAge2::Campaign::_entryScript
private

Definition at line 144 of file campaign.h.

Referenced by readCIFStatic().

◆ _eventQueue

EventQueue Engines::DragonAge2::Campaign::_eventQueue
private

Definition at line 168 of file campaign.h.

Referenced by addEvent(), enterArea(), and handleEvents().

◆ _extends

Common::UString Engines::DragonAge2::Campaign::_extends
private

Definition at line 132 of file campaign.h.

Referenced by getExtendsUID(), read(), and readManifest().

◆ _format

uint32 Engines::DragonAge2::Campaign::_format
private

Definition at line 139 of file campaign.h.

Referenced by read(), and readManifest().

◆ _game

Game* Engines::DragonAge2::Campaign::_game
private

Definition at line 122 of file campaign.h.

Referenced by loadResources(), and unload().

◆ _loaded

bool Engines::DragonAge2::Campaign::_loaded
private

Definition at line 157 of file campaign.h.

Referenced by isLoaded(), load(), and unload().

◆ _name

Aurora::LocString Engines::DragonAge2::Campaign::_name
private

Definition at line 129 of file campaign.h.

Referenced by getName(), load(), and readCIFStatic().

◆ _needsAuth

bool Engines::DragonAge2::Campaign::_needsAuth
private

Definition at line 136 of file campaign.h.

Referenced by needsAuth(), read(), and readManifest().

◆ _newArea

Common::UString Engines::DragonAge2::Campaign::_newArea
private

The new area to enter.

Definition at line 165 of file campaign.h.

Referenced by changeArea(), load(), loadArea(), and movePC().

◆ _packages

std::vector<Common::UString> Engines::DragonAge2::Campaign::_packages
private

Definition at line 150 of file campaign.h.

Referenced by loadResources(), and readCIFStatic().

◆ _pc

Creature* Engines::DragonAge2::Campaign::_pc
private

The player character we use.

Definition at line 163 of file campaign.h.

Referenced by enter(), enterArea(), getPC(), leave(), leaveArea(), and movePC().

◆ _priority

uint32 Engines::DragonAge2::Campaign::_priority
private

Definition at line 138 of file campaign.h.

Referenced by readManifest().

◆ _resources

ChangeList Engines::DragonAge2::Campaign::_resources
private

Definition at line 159 of file campaign.h.

Referenced by loadResources(), and unload().

◆ _rimRoot

Common::ScopedPtr<RIMNode> Engines::DragonAge2::Campaign::_rimRoot
private

Definition at line 152 of file campaign.h.

Referenced by readCIFDynamic(), and unload().

◆ _state

uint32 Engines::DragonAge2::Campaign::_state
private

Definition at line 140 of file campaign.h.

Referenced by read(), and readManifest().

◆ _tlks

ChangeList Engines::DragonAge2::Campaign::_tlks
private

Definition at line 160 of file campaign.h.

Referenced by loadResources(), and unload().

◆ _uid

Common::UString Engines::DragonAge2::Campaign::_uid
private

Definition at line 124 of file campaign.h.

Referenced by getUID(), load(), read(), and readManifest().


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