25 #ifndef ENGINES_DRAGONAGE_CAMPAIGN_H 26 #define ENGINES_DRAGONAGE_CAMPAIGN_H 75 const std::vector<Common::UString> &
getAreas()
const;
94 void movePC(
float x,
float y,
float z);
116 typedef std::map<Common::UString, const RIMNode *>
AreaMap;
222 #endif // ENGINES_DRAGONAGE_CAMPAIGN_H
Generic Aurora engines resource utility functions.
std::map< Common::UString, const RIMNode * > AreaMap
Map of area RIMNodes indexed by the area resref.
A class holding an UTF-8 string.
std::vector< Common::UString > _packages
Area * getCurrentArea() const
Return the area the PC is currently in.
bool isLoaded() const
Is this campaign currently loaded?
Common::UString _entryClientScript
virtual void enter()
The cursor entered the object.
void readCIFStatic(const Common::UString &path)
void unload()
Unload the campaign after playing.
void enterArea(bool startArea=false)
A container of Dragon Age: Origins objects.
void readCIFDynamic(const Common::UString &path)
Common::UString _addinBase
const std::vector< Common::UString > & getAreas() const
Common::UString tag
Name of the node itself, not unique.
bool isEnabled() const
Is this Campaign enabled?
std::vector< Common::UString > _areas
const Aurora::LocString & getDescription() const
RIMNode * readRIMs(const Aurora::GFF4Struct &node, const RIMNode *parent=0)
A simple scoped smart pointer template.
std::list< Common::ChangeID > ChangeList
const Aurora::LocString & getName() const
Common::UString rim
The module RIM file.
void leave()
Leave the campaign, ending it.
Aurora::LocString _description
std::list< Events::Event > EventQueue
Common::ScopedPtr< Area > _currentArea
The current area.
Common::UString _newArea
The new area to enter.
Creature * getPC() const
Return the currently playing PC.
Common::UString environment
Directory in which to find environment resources.
void load()
Load the campaign for playing.
static void destroy(T *x)
void processEventQueue()
Process the current event queue.
Common::UString area
ResRef of the area this node describes, if any.
bool isBioWare() const
Is this an original campaign by BioWare?
void read(const Common::UString &cifPath, const Common::UString &manifestPath)
A vector storing pointer to objects, with automatic deletion.
A scoped plain pointer, allowing pointer-y access and normal deletion.
const Common::UString & getAreaRIM(const Common::UString &area) const
Return the RIM file containing this area.
Common::UString _entryArea
Handling BioWare's localized strings.
An area in Dragon Age: Origins, holding all objects and rooms within, as well as general area propert...
Common::ScopedPtr< RIMNode > _rimRoot
Basic type definitions to handle files used in BioWare's Aurora engine.
An object in a Dragon Age: Origins area.
Common::UString _entryAreaList
Common::UString _entryScript
void movePC(const Common::UString &area)
Move the player character to this area.
RIMNode(const RIMNode *p=0)
void addEvent(const Events::Event &event)
Add a single event for consideration into the area event queue.
void readManifest(const Common::UString &path)
float _entryOrientation[3]
void addAreaName(const RIMNode &node)
Campaign(Game &game, const Common::UString &cifPath="", const Common::UString &manifestPath="", const Common::UString &addinBase="")
bool needsAuth() const
Does this campaign need authorization from BioWare?
const Common::UString & getExtendsUID() const
Return the UID of the campaign this campaign/content extends, if any.
Common::PtrVector< const RIMNode > Children
const Common::UString & getUID() const
Return the unique ID of this campaign.
Creature * _pc
The player character we use.