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

Animation script element. More...

#include <animscript.h>

Inheritance diagram for Stark::Resources::AnimScriptItem:
Collaboration diagram for Stark::Resources::AnimScriptItem:

List of all members.

Public Types

enum  Opcodes {
  kDisplayFrame = 0, kPlayAnimSound = 1, kGoToItem = 2, kDisplayRandomFrame = 3,
  kSleepRandomDuration = 4, kPlayStockSound = 5

Public Member Functions

 AnimScriptItem (Object *parent, byte subType, uint16 index, const Common::String &name)
virtual ~AnimScriptItem ()
void readData (Formats::XRCReadStream *stream) override
 Deserialize the resource static data and initial state.
uint32 getOpcode () const
 Obtain the operation code.
uint32 getOperand () const
 Obtain the operation parameter.
uint32 getDuration () const
 Obtain the operation duration.

Static Public Attributes

static const Type::ResourceType TYPE = Type::kAnimScriptItem

Protected Member Functions

void printData () override

Protected Attributes

uint32 _opcode
uint32 _operand
uint32 _duration

Detailed Description

Animation script element.

Has a type defining the operation to perform, an argument and a duration.

Definition at line 89 of file animscript.h.

Member Enumeration Documentation


Definition at line 93 of file animscript.h.

Constructor & Destructor Documentation

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

Definition at line 193 of file animscript.cpp.

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

Definition at line 190 of file animscript.cpp.

Member Function Documentation

uint32 Stark::Resources::AnimScriptItem::getDuration (  )  const [inline]

Obtain the operation duration.

Definition at line 115 of file animscript.h.

uint32 Stark::Resources::AnimScriptItem::getOpcode (  )  const [inline]

Obtain the operation code.

Definition at line 109 of file animscript.h.

uint32 Stark::Resources::AnimScriptItem::getOperand (  )  const [inline]

Obtain the operation parameter.

Definition at line 112 of file animscript.h.

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

Reimplemented from Stark::Resources::Object.

Definition at line 207 of file animscript.cpp.

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

Deserialize the resource static data and initial state.

Reimplemented from Stark::Resources::Object.

Definition at line 201 of file animscript.cpp.

Member Data Documentation

Definition at line 122 of file animscript.h.

Definition at line 120 of file animscript.h.

Definition at line 121 of file animscript.h.

const Type::ResourceType Stark::Resources::AnimScriptItem::TYPE = Type::kAnimScriptItem [static]

Definition at line 91 of file animscript.h.

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

Generated on Sat Sep 19 2020 05:06:09 for ResidualVM by doxygen 1.7.1
curved edge   curved edge