14#ifdef VIDEO_STANDARD_PAL
207 virtual void SetPaused(
bool bPaused,
int nPad,
int nReason);
258#ifdef VIDEO_STANDARD_PAL
Input event of a button press that names only the player.
Definition btnevent.h:15
Input event that changes the section a player is on.
Definition changesectionevent.h:10
Message the controller poll sends when a controller is connected or disconnected.
Definition joypadconnectionmsg.h:23
Message the keyboard poll sends when a key of a USB keyboard is pressed.
Definition keyboardkeymsg.h:23
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
Receiver of engine messages.
Definition msgsink.h:21
Input event that plays a note on one of the three gem buttons.
Definition playnoteevent.h:10
Owner of one reference to an Attachment.
Definition ptr.h:16
Input event that rotates a player's view of the tracks by one track.
Definition rotateevent.h:11
Input event of an analog stick position.
Definition stickevent.h:15
virtual void HandleInput(const ChangeSectionEvent &event)=0
Act on a section change.
virtual void SetPaused(bool bPaused, int nPad, int nReason)
Pause or resume the song.
virtual void HandleInput(const BtnEvent< 8 > &event)=0
Act on a button event.
virtual void HandleInput(const BtnEvent< 3 > &event)=0
Act on a button event.
virtual float GetProgress()=0
Report how much of the song has been played.
virtual void Start()=0
Start the song.
virtual void HandleInput(const PlayNoteEvent &event)=0
Act on a played note.
void AllNotesOff()
Silence every synthesiser channel.
int OnJoypadConnection(JoypadConnectionMsg *pMsg)
Pause the playing song when the controller of a player is disconnected.
virtual bool IsPlaying() const =0
Report whether the song is playing.
WorldLogic()
Construct the logic and give the input of every controller to the world.
bool DispatchPriv(Message *pMsg) override
Pass a JoypadConnectionMsg to OnJoypadConnection() and ignore any other message.
virtual int HasQuit() const =0
Report whether a player quit the song.
virtual float GetTime()=0
Report the song time.
virtual void HandleInput(const StickEvent< 6 > &event)=0
Act on a stick event.
virtual bool IsFreestyling(int nPlayer)=0
Report whether a player plays the freestyle track.
virtual void Poll()=0
Advance the logic once per frame.
virtual void HandleInput(const BtnEvent< 9 > &event)=0
Act on a button event.
virtual int IsRestartRequested() const =0
Report whether the song is to start again once it ends.
virtual void HandleInput(const BtnEvent< 10 > &event)=0
Act on a button event.
virtual void Stop()=0
Stop the song.
virtual void HandleInput(const BtnEvent< 5 > &event)=0
Act on a button event.
virtual void HandleInput(const BtnEvent< 4 > &event)=0
Act on a button event.
virtual void HandleInput(const StickEvent< 2 > &event)=0
Act on a stick event.
virtual int GetTick()=0
Report the song position.
virtual void HandleInput(const RotateEvent &event)=0
Act on a rotation.
static int FindDisconnectedPad()
Find the controller of a player on this console that is disconnected.
~WorldLogic() override
Release the logic.
void ScheduleControllerCheck()
Pause the song again one tick from now when a controller is disconnected.
virtual bool IsFinished() const =0
Report whether the song is over.