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

#include <campaign.h>

Inheritance diagram for Engines::DragonAge::Campaign:
Inheritance graph
[legend]
Collaboration diagram for Engines::DragonAge::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::DragonAge::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::DragonAge::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::DragonAge::ObjectContainer
 ObjectContainer ()
 
 ~ObjectContainer ()
 
void clearObjects ()
 
void addObject (DragonAge::Object &object)
 Add an object to this container. More...
 
void removeObject (DragonAge::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::DragonAge::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::DragonAge::ObjectContainer
static DragonAge::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::DragonAge::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::DragonAge::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::DragonAge::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 116 of file campaign.h.

◆ EventQueue

Definition at line 118 of file campaign.h.

Constructor & Destructor Documentation

◆ Campaign()

Engines::DragonAge::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::DragonAge::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::DragonAge::Campaign::addAreaName ( const RIMNode node)
private

◆ addEvent()

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

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

Definition at line 482 of file campaign.cpp.

References _eventQueue.

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

Here is the caller graph for this function:

◆ changeArea()

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

Definition at line 470 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::DragonAge::Campaign::enter ( Creature pc)
private

Enter the campaign, starting it.

Definition at line 417 of file campaign.cpp.

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

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

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

◆ enterArea()

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

◆ getAreaRIM()

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

Return the RIM file containing this area.

Definition at line 277 of file campaign.cpp.

References _areaMap, and Aurora::kEmptyString.

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

Here is the caller graph for this function:

◆ getAreas()

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

Definition at line 287 of file campaign.cpp.

References _areas.

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

Here is the caller graph for this function:

◆ getCurrentArea()

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

Return the area the PC is currently in.

Definition at line 291 of file campaign.cpp.

References _currentArea.

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

Here is the caller graph for this function:

◆ getDescription()

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

Definition at line 94 of file campaign.cpp.

References _description.

◆ getExtendsUID()

const Common::UString & Engines::DragonAge::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::DragonAge::Campaigns::addCampaign().

Here is the caller graph for this function:

◆ getName()

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

Definition at line 90 of file campaign.cpp.

References _name.

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

Here is the caller graph for this function:

◆ getPC()

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

Return the currently playing PC.

Definition at line 295 of file campaign.cpp.

References _pc.

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

Here is the caller graph for this function:

◆ getUID()

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

Return the unique ID of this campaign.

Definition at line 86 of file campaign.cpp.

References _uid.

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

Here is the caller graph for this function:

◆ handleEvents()

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

Definition at line 498 of file campaign.cpp.

References _currentArea, and _eventQueue.

Referenced by processEventQueue().

Here is the caller graph for this function:

◆ isBioWare()

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

Is this an original campaign by BioWare?

Definition at line 269 of file campaign.cpp.

References _bioware.

◆ isEnabled()

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

Is this Campaign enabled?

Definition at line 265 of file campaign.cpp.

References _enabled.

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

Here is the caller graph for this function:

◆ isLoaded()

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

Is this campaign currently loaded?

Definition at line 299 of file campaign.cpp.

References _loaded.

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

Here is the caller graph for this function:

◆ leave()

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

Leave the campaign, ending it.

Reimplemented from Engines::DragonAge::Object.

Definition at line 431 of file campaign.cpp.

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

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

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

◆ leaveArea()

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

Definition at line 440 of file campaign.cpp.

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

Referenced by leave(), and unloadArea().

Here is the caller graph for this function:

◆ load()

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

Load the campaign for playing.

Definition at line 344 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::DragonAge::Campaigns::loadCampaign().

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

◆ loadArea()

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

Definition at line 458 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::DragonAge::Campaign::loadResources ( )
private

Definition at line 303 of file campaign.cpp.

References _addinBase, _game, _packages, _resources, _tlks, Common::UString::empty(), Engines::DragonAge::kTextureQualityHigh, Engines::DragonAge::Game::loadResources(), Engines::DragonAge::Game::loadTalkTables(), and Engines::DragonAge::Game::loadTexturePack().

Referenced by load().

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

◆ movePC() [1/3]

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

Move the player character to this area.

Definition at line 507 of file campaign.cpp.

References _newArea.

Referenced by Engines::DragonAge::Console::cmdLoadArea(), and movePC().

Here is the caller graph for this function:

◆ movePC() [2/3]

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

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

Definition at line 511 of file campaign.cpp.

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

Here is the call graph for this function:

◆ movePC() [3/3]

void Engines::DragonAge::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 520 of file campaign.cpp.

References movePC().

Here is the call graph for this function:

◆ needsAuth()

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

Does this campaign need authorization from BioWare?

Definition at line 273 of file campaign.cpp.

References _needsAuth.

◆ processEventQueue()

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

Process the current event queue.

Definition at line 486 of file campaign.cpp.

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

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

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

◆ read()

void Engines::DragonAge::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::DragonAge::Campaign::readCIFDynamic ( const Common::UString path)
private

◆ readCIFStatic()

void Engines::DragonAge::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::DragonAge::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::DragonAge::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::DragonAge::Campaign::readManifest ( const Common::UString path)
private

◆ readRIMs()

RIMNode* Engines::DragonAge::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::DragonAge::Campaign::unload ( )
private

Unload the campaign after playing.

Definition at line 356 of file campaign.cpp.

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

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

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

◆ unloadArea()

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

Definition at line 450 of file campaign.cpp.

References _currentArea, Engines::DragonAge::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 212 of file campaign.h.

◆ Common::DeallocatorDefault::destroy

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

Member Data Documentation

◆ _addinBase

Common::UString Engines::DragonAge::Campaign::_addinBase
private

Definition at line 126 of file campaign.h.

Referenced by loadResources().

◆ _areaMap

AreaMap Engines::DragonAge::Campaign::_areaMap
private

Definition at line 152 of file campaign.h.

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

◆ _areas

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

Definition at line 154 of file campaign.h.

Referenced by getAreas(), and unload().

◆ _bioware

bool Engines::DragonAge::Campaign::_bioware
private

Definition at line 134 of file campaign.h.

Referenced by isBioWare(), and readManifest().

◆ _cifPath

Common::UString Engines::DragonAge::Campaign::_cifPath
private

Definition at line 125 of file campaign.h.

Referenced by load().

◆ _currentArea

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

The current area.

Definition at line 165 of file campaign.h.

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

◆ _description

Aurora::LocString Engines::DragonAge::Campaign::_description
private

Definition at line 129 of file campaign.h.

Referenced by getDescription(), and readCIFStatic().

◆ _enabled

bool Engines::DragonAge::Campaign::_enabled
private

Definition at line 133 of file campaign.h.

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

◆ _entryArea

Common::UString Engines::DragonAge::Campaign::_entryArea
private

Definition at line 141 of file campaign.h.

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

◆ _entryAreaList

Common::UString Engines::DragonAge::Campaign::_entryAreaList
private

Definition at line 142 of file campaign.h.

Referenced by readCIFStatic().

◆ _entryClientScript

Common::UString Engines::DragonAge::Campaign::_entryClientScript
private

Definition at line 144 of file campaign.h.

Referenced by readCIFStatic().

◆ _entryOrientation

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

Definition at line 147 of file campaign.h.

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

◆ _entryPosition

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

Definition at line 146 of file campaign.h.

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

◆ _entryScript

Common::UString Engines::DragonAge::Campaign::_entryScript
private

Definition at line 143 of file campaign.h.

Referenced by readCIFStatic().

◆ _eventQueue

EventQueue Engines::DragonAge::Campaign::_eventQueue
private

Definition at line 167 of file campaign.h.

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

◆ _extends

Common::UString Engines::DragonAge::Campaign::_extends
private

Definition at line 131 of file campaign.h.

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

◆ _format

uint32 Engines::DragonAge::Campaign::_format
private

Definition at line 138 of file campaign.h.

Referenced by read(), and readManifest().

◆ _game

Game* Engines::DragonAge::Campaign::_game
private

Definition at line 121 of file campaign.h.

Referenced by loadResources(), and unload().

◆ _loaded

bool Engines::DragonAge::Campaign::_loaded
private

Definition at line 156 of file campaign.h.

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

◆ _name

Aurora::LocString Engines::DragonAge::Campaign::_name
private

Definition at line 128 of file campaign.h.

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

◆ _needsAuth

bool Engines::DragonAge::Campaign::_needsAuth
private

Definition at line 135 of file campaign.h.

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

◆ _newArea

Common::UString Engines::DragonAge::Campaign::_newArea
private

The new area to enter.

Definition at line 164 of file campaign.h.

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

◆ _packages

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

Definition at line 149 of file campaign.h.

Referenced by loadResources(), and readCIFStatic().

◆ _pc

Creature* Engines::DragonAge::Campaign::_pc
private

The player character we use.

Definition at line 162 of file campaign.h.

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

◆ _priority

uint32 Engines::DragonAge::Campaign::_priority
private

Definition at line 137 of file campaign.h.

Referenced by readManifest().

◆ _resources

ChangeList Engines::DragonAge::Campaign::_resources
private

Definition at line 158 of file campaign.h.

Referenced by loadResources(), and unload().

◆ _rimRoot

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

Definition at line 151 of file campaign.h.

Referenced by readCIFDynamic(), and unload().

◆ _state

uint32 Engines::DragonAge::Campaign::_state
private

Definition at line 139 of file campaign.h.

Referenced by read(), and readManifest().

◆ _tlks

ChangeList Engines::DragonAge::Campaign::_tlks
private

Definition at line 159 of file campaign.h.

Referenced by loadResources(), and unload().

◆ _uid

Common::UString Engines::DragonAge::Campaign::_uid
private

Definition at line 123 of file campaign.h.

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


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