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

Stark::Resources::Layer2D Class Reference

A 2D layer. More...

#include <layer.h>

Inheritance diagram for Stark::Resources::Layer2D:
Collaboration diagram for Stark::Resources::Layer2D:

List of all members.

Public Member Functions

 Layer2D (Object *parent, byte subType, uint16 index, const Common::String &name)
virtual ~Layer2D ()
void readData (Formats::XRCReadStream *stream) override
 Deserialize the resource static data and initial state.
void onEnterLocation () override
 Called when entering a location.
void onExitLocation () override
 Called when exiting a location.
Gfx::RenderEntryArray listRenderEntries () override
 Obtain the render entries for all items, including the background.

Protected Member Functions

void printData () override

Protected Attributes

Common::Array< uint32_itemIndices
Common::Array< Item * > _items

Detailed Description

A 2D layer.

2D layers contain 2D positioned items

Definition at line 101 of file stark/resources/layer.h.


Constructor & Destructor Documentation

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

Definition at line 118 of file stark/resources/layer.cpp.

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

Definition at line 115 of file stark/resources/layer.cpp.


Member Function Documentation

Gfx::RenderEntryArray Stark::Resources::Layer2D::listRenderEntries (  )  [override, virtual]

Obtain the render entries for all items, including the background.

Implements Stark::Resources::Layer.

Definition at line 157 of file stark/resources/layer.cpp.

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

Called when entering a location.

Reimplemented from Stark::Resources::Object.

Definition at line 134 of file stark/resources/layer.cpp.

void Stark::Resources::Layer2D::onExitLocation (  )  [override, virtual]

Called when exiting a location.

Reimplemented from Stark::Resources::Object.

Definition at line 151 of file stark/resources/layer.cpp.

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

Reimplemented from Stark::Resources::Layer.

Definition at line 175 of file stark/resources/layer.cpp.

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

Deserialize the resource static data and initial state.

Reimplemented from Stark::Resources::Layer.

Definition at line 122 of file stark/resources/layer.cpp.


Member Data Documentation


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


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