|
| | World () |
| | Construct a world with no game state.
|
| | ~World () override |
| | Release the world.
|
| bool | DispatchPriv (Message *pMsg) override |
| | Act on a message sent to the world.
|
| virtual int | GetRuleSet () const =0 |
| | Report the rule set the world plays under.
|
| virtual bool | IsFinished ()=0 |
| | Report whether the running world has ended.
|
| virtual float | GetDisplayTime () |
| | Report how far the running world has played, from WorldLogic::GetProgress().
|
| virtual void | Handle (const RotateEvent &event)=0 |
| | Act on a rotation from the input router.
|
| virtual void | Handle (const PlayNoteEvent &event)=0 |
| | Act on a gem button from the input router.
|
| virtual void | Handle (const BtnEvent< 8 > &event)=0 |
| | Act on a button event of command 8 from the input router.
|
| virtual void | Handle (const StickEvent< 2 > &event)=0 |
| | Act on a stick event of command 2 from the input router.
|
| virtual void | Handle (const StickEvent< 6 > &event)=0 |
| | Act on a stick event of command 6 from the input router.
|
| virtual void | Handle (const BtnEvent< 3 > &event)=0 |
| | Act on a button event of command 3 from the input router.
|
| virtual void | Handle (const BtnEvent< 4 > &event)=0 |
| | Act on a button event of command 4 from the input router.
|
| virtual void | Handle (const BtnEvent< 5 > &event)=0 |
| | Act on a button event of command 5 from the input router.
|
| virtual void | Handle (const ChangeSectionEvent &event)=0 |
| | Act on a section change from the input router.
|
| virtual void | Handle (const BtnEvent< 9 > &event)=0 |
| | Act on a button event of command 9 from the input router.
|
| virtual void | Handle (const BtnEvent< 10 > &event)=0 |
| | Act on a button event of command 10 from the input router.
|
| virtual void | BeginAssetLoad ()=0 |
| | Start loading the assets of the second loading stage.
|
| virtual void | PollAssetLoad ()=0 |
| | Advance the second loading stage by one frame.
|
| virtual bool | IsAssetLoadDone ()=0 |
| | Report whether the second loading stage finished.
|
| virtual void | BeginSongLoad ()=0 |
| | Start loading the song, the first loading stage.
|
| virtual void | PollSongLoad ()=0 |
| | Advance the first loading stage by one frame.
|
| virtual bool | IsSongLoadDone ()=0 |
| | Report whether the first loading stage finished.
|
| virtual void | BeginEnding () |
| | Start the sequence that follows the end of the game.
|
| virtual void | PollEnding () |
| | Advance the sequence that follows the end of the game by one frame.
|
| virtual bool | IsEndingDone () |
| | Report whether the sequence that follows the end of the game finished.
|
| virtual void | CreateLogic ()=0 |
| | Build the WorldLogic of the rule set and install it with SetLogic().
|
| virtual void | Record (const RotateEvent &event) |
| | Record a rotation as a serializable input command.
|
| virtual void | Record (const PlayNoteEvent &event) |
| | Record a gem button as a serializable input command.
|
| virtual void | Record (const BtnEvent< 8 > &event) |
| | Record a button event of command 8.
|
| virtual void | Record (const StickEvent< 2 > &event) |
| | Record a stick event of command 2.
|
| virtual void | Record (const StickEvent< 6 > &event) |
| | Record a stick event of command 6.
|
| virtual void | Record (const BtnEvent< 3 > &event) |
| | Record a button event of command 3.
|
| virtual void | Record (const BtnEvent< 4 > &event) |
| | Record a button event of command 4.
|
| virtual void | Record (const BtnEvent< 5 > &event) |
| | Record a button event of command 5.
|
| virtual void | Record (const ChangeSectionEvent &event) |
| | Record a section change.
|
| virtual void | Record (const BtnEvent< 9 > &event) |
| | Record a button event of command 9.
|
| virtual void | Record (const BtnEvent< 10 > &event) |
| | Record a button event of command 10.
|
| virtual void | OnStart () |
| | Finish starting the song, after Start() created the logic.
|
| virtual void | BuildTracks (int nStartTick)=0 |
| | Build the track display for the song.
|
| void | Start () |
| | Start the song of a world that finished loading.
|
| void | Stop () |
| | Stop the song and release what Start() and LoadAssets() created.
|
| int | IsRestartRequested () |
| | Report whether the world that ended requested a restart.
|
| bool | IsFreestyling (int nPlayer) |
| | Report whether a player is in a freestyle while the song plays.
|
| void | Poll () |
| | Advance the world by one frame.
|
| bool | IsLoaded () const |
| | Report whether the assets LoadAssets() started are loaded.
|
| void | LoadAssets () |
| | Start loading the song and the assets of the world.
|
| int | GetTick () |
| | Report the song position in ticks.
|
| float | GetTime () |
| | Report the song position on the song clock.
|
| void | SetLogic (WorldLogic *pLogic) |
| | Destroy the installed logic and install another.
|
| void * | operator new (size_t nSize) |
| | Allocate a sink from the pool heaps under the tag "MsgSink".
|
| void | operator delete (void *pBlock) |
| | Return a sink to the pool heaps.
|
| virtual | ~MsgSink () |
| virtual bool | Dispatch (Message *pMsg) |
| | Accept a message.
|
| void * | operator new (size_t size) |
| | Allocate from the main heap under the name MsgSink.
|
| void | operator delete (void *mem) |
| | Return memory to its heap.
|
| virtual | ~MsgSink () |
| | Destroy the sink.
|
| virtual bool | Dispatch (Message *msg) |
| | Handle a message.
|
One game in progress under one rule set.
The RTTI records the class as deriving from MsgSink. Game, Remix, and Duel derive from it, one for each rule set WorldMgr::Load() can build. LoadAssets() builds the Song, and Poll() steps the load through mLoadStep. Start() starts the song clock and installs the logic, which TheWorldLogic addresses. A logic that ends because the player quit plays the ending and starts the song again. An online world holds the session messages that arrive before the song starts and passes them to the logic once it starts.