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

A typed collection of Knowledge resources. More...

#include <knowledgeset.h>

Inheritance diagram for Stark::Resources::KnowledgeSet:
Collaboration diagram for Stark::Resources::KnowledgeSet:

List of all members.

Public Types

enum  SubType {
  kInventory = 1, kState = 2, kPersons = 3, kLocations = 4,
  kDiary = 5
}

Public Member Functions

 KnowledgeSet (Object *parent, byte subType, uint16 index, const Common::String &name)
virtual ~KnowledgeSet ()
void saveLoad (ResourceSerializer *serializer) override
 Persist / restore the resource state.
void addItem (InventoryItem *item)
 Add an inventory item, and keep track of its acquisition order.
void removeItem (InventoryItem *item)
 Remove an inventory item.
Gfx::RenderEntryArray getInventoryRenderEntries () const
 Get the render entries for the inventory items, in the order they were obtained.
VisualgetInventoryItemVisual (uint16 itemIndex)
 Get a cursor style visual for an inventory item.
int16 getNeighborInventoryItem (int16 selectedItem, bool forward)
 Get the index of a neighbor inventory item of a selected item, return -1 in corner case.

Static Public Attributes

static const Type::ResourceType TYPE = Type::kKnowledgeSet

Protected Member Functions

void printData () override

Protected Attributes

Common::Array< uint16_inventoryItemOrder

Detailed Description

A typed collection of Knowledge resources.

Definition at line 44 of file knowledgeset.h.


Member Enumeration Documentation

Enumerator:
kInventory 
kState 
kPersons 
kLocations 
kDiary 

Definition at line 48 of file knowledgeset.h.


Constructor & Destructor Documentation

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

Definition at line 35 of file knowledgeset.cpp.

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

Definition at line 32 of file knowledgeset.cpp.


Member Function Documentation

void Stark::Resources::KnowledgeSet::addItem ( InventoryItem item  ) 

Add an inventory item, and keep track of its acquisition order.

Definition at line 77 of file knowledgeset.cpp.

Visual * Stark::Resources::KnowledgeSet::getInventoryItemVisual ( uint16  itemIndex  ) 

Get a cursor style visual for an inventory item.

Definition at line 100 of file knowledgeset.cpp.

Gfx::RenderEntryArray Stark::Resources::KnowledgeSet::getInventoryRenderEntries (  )  const

Get the render entries for the inventory items, in the order they were obtained.

Definition at line 43 of file knowledgeset.cpp.

int16 Stark::Resources::KnowledgeSet::getNeighborInventoryItem ( int16  selectedItem,
bool  forward 
)

Get the index of a neighbor inventory item of a selected item, return -1 in corner case.

Definition at line 107 of file knowledgeset.cpp.

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

Reimplemented from Stark::Resources::Object.

Definition at line 40 of file knowledgeset.cpp.

void Stark::Resources::KnowledgeSet::removeItem ( InventoryItem item  ) 

Remove an inventory item.

Definition at line 81 of file knowledgeset.cpp.

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

Persist / restore the resource state.

Reimplemented from Stark::Resources::Object.

Definition at line 91 of file knowledgeset.cpp.


Member Data Documentation

const Type::ResourceType Stark::Resources::KnowledgeSet::TYPE = Type::kKnowledgeSet [static]

Definition at line 46 of file knowledgeset.h.


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


Generated on Sat Sep 14 2019 05:05:05 for ResidualVM by doxygen 1.7.1
curved edge   curved edge