|
| U8MusicProcess (MidiPlayer *player) |
|
void | playMusic (int track) override |
| Play some background music. Does not change the current track if combat music is active. If another track is currently queued, just queues this track for play.
|
|
void | playCombatMusic (int track) override |
| Play some combat music - the last played track will be remembered.
|
|
void | queueMusic (int track) override |
| Queue a track to start once the current one finishes.
|
|
void | unqueueMusic () override |
| Clear any queued track (does not affect currently playing track)
|
|
void | restoreMusic () override |
| Restore the last requested non-combat track (eg, at the end of combat)
|
|
void | fadeMusic (uint16 length) override |
| Fades out the music over the specified time (in milliseconds)
|
|
bool | isFading () override |
| Returns true if the music is currently fading.
|
|
void | saveTrackState () override |
| Save the current track state - used when the menu is opened.
|
|
void | restoreTrackState () override |
| Bring back the track state from before it was put on hold.
|
|
void | getTrackState (TrackState &trackState) const |
| Get the state of tracks (wanted, requested, queued)
|
|
void | setTrackState (const TrackState &state) |
|
bool | isPlaying () override |
| Is a track currently playing?
|
|
void | pauseMusic () override |
| Pause the currently playing track.
|
|
void | unpauseMusic () override |
| Resume the current track after pausing.
|
|
void | run () override |
|
bool | loadData (Common::ReadStream *rs, uint32 version) |
|
void | saveData (Common::WriteStream *ws) override |
| save Process data
|
|
| INTRINSIC (I_playMusic) |
|
| INTRINSIC (I_stopMusic) |
|
| INTRINSIC (I_pauseMusic) |
|
| INTRINSIC (I_unpauseMusic) |
|
| Process (ObjId _itemNum=0, uint16 type=0) |
|
uint32 | getProcessFlags () const |
|
bool | is_active () const |
|
bool | is_terminated () const |
|
bool | is_suspended () const |
|
void | fail () |
| terminate the process and recursively fail all processes waiting for it
|
|
virtual void | terminate () |
| terminate the process. This wakes up all processes waiting for it.
|
|
void | terminateDeferred () |
| terminate next frame
|
|
void | setRunPaused () |
| run even when paused
|
|
void | waitFor (ProcId pid) |
| suspend until process 'pid' returns. If pid is 0, suspend indefinitely
|
|
void | waitFor (Process *proc) |
| suspend until process returns. If proc is 0, suspend indefinitely
|
|
void | suspend () |
| suspend process
|
|
void | wakeUp (uint32 result) |
| Wake up when the process we were waiting for has finished.
|
|
virtual void | onWakeUp () |
| A hook to add aditional behavior on wakeup, before anything else happens.
|
|
void | setItemNum (ObjId it) |
|
void | setType (uint16 ty) |
|
void | setTicksPerRun (uint32 val) |
|
ProcId | getPid () const |
|
ObjId | getItemNum () const |
|
uint16 | getType () const |
|
uint32 | getTicksPerRun () const |
|
virtual Common::String | dumpInfo () const |
| dump some info about this process to a string
|
|
bool | loadData (Common::ReadStream *rs, uint32 version) |
| load Process data
|
|
bool | validateWaiters () const |
|