ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <pattable.h>

Inheritance diagram for Stark::Resources::PATTable:
Collaboration diagram for Stark::Resources::PATTable:

List of all members.

Classes

struct  Entry

Public Types

enum  ActionType { kActionUse = 1, kActionLook = 2, kActionTalk = 3, kActionExit = 7 }

Public Member Functions

 PATTable (Object *parent, byte subType, uint16 index, const Common::String &name)
virtual ~PATTable ()
void readData (Formats::XRCReadStream *stream) override
 Deserialize the resource static data and initial state.
void onAllLoaded () override
 Called when the resource sub-tree is entirely loaded.
void onEnterLocation () override
 Called when entering a location.
void saveLoad (ResourceSerializer *serializer) override
 Persist / restore the resource state.
ActionArray listPossibleActions () const
bool runScriptForAction (uint32 action)
bool canPerformAction (uint32 action) const
int32 getDefaultAction () const
 If a default action is available, only it can be executed.
void setTooltip (String *string)
 Replace the PAT tooltip with the name of a string resource.

Static Public Attributes

static const Type::ResourceType TYPE = Type::kPATTable

Protected Types

typedef Common::HashMap
< uint32, Entry
EntryMap

Protected Member Functions

void addOwnEntriesToItemEntries ()
Common::Array< EntrylistItemEntries () const
ItemTemplatefindItemTemplate ()
void printData () override

Protected Attributes

Common::Array< Entry_ownEntries
EntryMap _itemEntries
int32 _defaultAction
int32 _tooltipOverrideIndex

Detailed Description

Definition at line 45 of file pattable.h.


Member Typedef Documentation

Definition at line 84 of file pattable.h.


Member Enumeration Documentation

Enumerator:
kActionUse 
kActionLook 
kActionTalk 
kActionExit 

Definition at line 49 of file pattable.h.


Constructor & Destructor Documentation

Stark::Resources::PATTable::PATTable ( Object parent,
byte  subType,
uint16  index,
const Common::String name 
)

Definition at line 38 of file pattable.cpp.

Stark::Resources::PATTable::~PATTable (  )  [virtual]

Definition at line 35 of file pattable.cpp.


Member Function Documentation

void Stark::Resources::PATTable::addOwnEntriesToItemEntries (  )  [protected]

Definition at line 124 of file pattable.cpp.

bool Stark::Resources::PATTable::canPerformAction ( uint32  action  )  const

Definition at line 157 of file pattable.cpp.

ItemTemplate * Stark::Resources::PATTable::findItemTemplate (  )  [protected]

Definition at line 108 of file pattable.cpp.

int32 Stark::Resources::PATTable::getDefaultAction (  )  const

If a default action is available, only it can be executed.

Definition at line 165 of file pattable.cpp.

Common::Array< PATTable::Entry > Stark::Resources::PATTable::listItemEntries (  )  const [protected]

Definition at line 134 of file pattable.cpp.

ActionArray Stark::Resources::PATTable::listPossibleActions (  )  const

Definition at line 144 of file pattable.cpp.

void Stark::Resources::PATTable::onAllLoaded (  )  [override, virtual]

Called when the resource sub-tree is entirely loaded.

Allows to load data from other nodes.

Reimplemented from Stark::Resources::Object.

Definition at line 68 of file pattable.cpp.

void Stark::Resources::PATTable::onEnterLocation (  )  [override, virtual]

Called when entering a location.

Reimplemented from Stark::Resources::Object.

Definition at line 75 of file pattable.cpp.

void Stark::Resources::PATTable::printData (  )  [override, protected, virtual]

Reimplemented from Stark::Resources::Object.

Definition at line 60 of file pattable.cpp.

void Stark::Resources::PATTable::readData ( Formats::XRCReadStream stream  )  [override, virtual]

Deserialize the resource static data and initial state.

Reimplemented from Stark::Resources::Object.

Definition at line 45 of file pattable.cpp.

bool Stark::Resources::PATTable::runScriptForAction ( uint32  action  ) 

Definition at line 173 of file pattable.cpp.

void Stark::Resources::PATTable::saveLoad ( ResourceSerializer serializer  )  [override, virtual]

Persist / restore the resource state.

Reimplemented from Stark::Resources::Object.

Definition at line 99 of file pattable.cpp.

void Stark::Resources::PATTable::setTooltip ( String string  ) 

Replace the PAT tooltip with the name of a string resource.

Definition at line 182 of file pattable.cpp.


Member Data Documentation

Definition at line 95 of file pattable.h.

Definition at line 94 of file pattable.h.

Definition at line 93 of file pattable.h.

Definition at line 96 of file pattable.h.

const Type::ResourceType Stark::Resources::PATTable::TYPE = Type::kPATTable [static]

Definition at line 47 of file pattable.h.


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


Generated on Sat Jan 19 2019 05:07:58 for ResidualVM by doxygen 1.7.1
curved edge   curved edge