#include <Chapter.h>
Inheritance diagram for Chapter:
Public Methods | |
Chapter () | |
WDError | initRef (void *inNode, IObjectManager *inManager, IObjectEventHandler *inEventHandler) |
WDError | initRef (Episode *inParent, int inIndex, IObjectEventHandler *inEventHandler) |
WDError | initNew (Episode *inParent, IObjectEventHandler *inEventHandler) |
WDError | getSpeed (float *outSpeed) |
WDError | setSpeed (float inSpeed) |
WDError | setMusic (Sound *inSound) |
WDError | getMusic (void **outSoundNode) |
WDError | setBackground (Image *inBackground) |
WDError | getBackground (void **outImageNode) |
void | childChanged (IManagedObject *inTarget, void *inChild) |
Private Methods | |
WDError | updateMusicID () |
WDError | updateBackgroundID () |
Private Attributes | |
Image * | mImage |
Sound * | mSound |
A Chapter is a part of a Scenario. It has its own background image, its own music and it's own scrolling speed (thus, all those may vary throughout the Scenario).
|
|
|
Called when a child of the data node has been modified
Reimplemented from ManagedObject. |
|
Returns the Chapter's background Image data node
|
|
Returns the Chapter's music data node
|
|
Returns the scrolling speed of the Chapter
|
|
Creates a new Chapter and adds it to the database
|
|
Initializes an existing Chapter based on its parent |
|
Initializes an existing Chapter based on data node
Reimplemented from ManagedObject. |
|
Sets the Chapter's background Image
|
|
Sets the Chapter's music
|
|
Sets the scrolling speed of the Chapter
|
|
Updates the background attribute in the database - used when the ID of the referenced Image has changed. |
|
Updates the music attribute in the database - used when the ID of the referenced Music has changed. |
|
Image used as the Chapter's background |
|
Sound used as the Chapter's music |