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

A game logic state value holder. More...

#include <knowledge.h>

Inheritance diagram for Stark::Resources::Knowledge:
Collaboration diagram for Stark::Resources::Knowledge:

List of all members.

Public Types

enum  SubType {
  kBoolean = 0, kInteger = 2, kInteger2 = 3, kReference = 4,
  kBooleanWithChild = 5
}

Public Member Functions

 Knowledge (Object *parent, byte subType, uint16 index, const Common::String &name)
virtual ~Knowledge ()
void readData (Formats::XRCReadStream *stream) override
 Deserialize the resource static data and initial state.
void saveLoad (ResourceSerializer *serializer) override
 Persist / restore the resource state.
void setBooleanValue (bool value)
 Define the value for boolean Knowledge elements.
bool getBooleanValue ()
 Obtain the value for boolean Knowledge elements.
void setIntegerValue (int32 value)
 Define the value for integer Knowledge elements.
int32 getIntegerValue ()
 Obtain the value for integer Knowledge elements.

Static Public Attributes

static const Type::ResourceType TYPE = Type::kKnowledge

Protected Member Functions

void printData () override

Protected Attributes

bool _booleanValue
int32 _integerValue
ResourceReference _referenceValue

Detailed Description

A game logic state value holder.

Definition at line 42 of file knowledge.h.


Member Enumeration Documentation

Enumerator:
kBoolean 
kInteger 
kInteger2 
kReference 
kBooleanWithChild 

Definition at line 46 of file knowledge.h.


Constructor & Destructor Documentation

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

Definition at line 35 of file knowledge.cpp.

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

Definition at line 32 of file knowledge.cpp.


Member Function Documentation

bool Stark::Resources::Knowledge::getBooleanValue (  ) 

Obtain the value for boolean Knowledge elements.

Definition at line 46 of file knowledge.cpp.

int32 Stark::Resources::Knowledge::getIntegerValue (  ) 

Obtain the value for integer Knowledge elements.

Definition at line 54 of file knowledge.cpp.

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

Reimplemented from Stark::Resources::Object.

Definition at line 84 of file knowledge.cpp.

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

Deserialize the resource static data and initial state.

Reimplemented from Stark::Resources::Object.

Definition at line 64 of file knowledge.cpp.

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

Persist / restore the resource state.

Reimplemented from Stark::Resources::Object.

Definition at line 58 of file knowledge.cpp.

void Stark::Resources::Knowledge::setBooleanValue ( bool  value  ) 

Define the value for boolean Knowledge elements.

Definition at line 42 of file knowledge.cpp.

void Stark::Resources::Knowledge::setIntegerValue ( int32  value  ) 

Define the value for integer Knowledge elements.

Definition at line 50 of file knowledge.cpp.


Member Data Documentation

Definition at line 76 of file knowledge.h.

Definition at line 77 of file knowledge.h.

const Type::ResourceType Stark::Resources::Knowledge::TYPE = Type::kKnowledge [static]

Definition at line 44 of file knowledge.h.


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


Generated on Sat Mar 16 2019 05:07:05 for ResidualVM by doxygen 1.7.1
curved edge   curved edge