wavelength 1.0.0
Loading...
Searching...
No Matches
ChangeSectionEvent Class Reference

Input event that changes the section a player is on. More...

#include <changesectionevent.h>

Public Member Functions

 ChangeSectionEvent ()=default
 Construct an event with unset members.
 ChangeSectionEvent (BinStream &stream)
 Construct the event from a recording.
void Save (BinStream &stream) const
 Record the player in one byte and the direction in four bytes of the console's byte order.
void Load (BinStream &stream)
 Read the event Save() records.
unsigned char GetPlayer () const
void SetPlayer (unsigned char nPlayer)
int GetDirection () const
void SetDirection (int nDirection)

Detailed Description

Input event that changes the section a player is on.

The RTTI includes the name as the argument of the input command template.

Constructor & Destructor Documentation

◆ ChangeSectionEvent() [1/2]

ChangeSectionEvent::ChangeSectionEvent ( )
default

Construct an event with unset members.

Inline.

◆ ChangeSectionEvent() [2/2]

ChangeSectionEvent::ChangeSectionEvent ( BinStream & stream)
explicit

Construct the event from a recording.

Parameters
streamThe stream to read from.
Ghidra address:
NTSC-U/C: 0x00151560
Ghidra address:
PAL: 0x00152dd8

Member Function Documentation

◆ Save()

void ChangeSectionEvent::Save ( BinStream & stream) const

Record the player in one byte and the direction in four bytes of the console's byte order.

Parameters
streamThe stream to write to.
Ghidra address:
NTSC-U/C: 0x00151588
Ghidra address:
PAL: 0x00152e00

◆ Load()

void ChangeSectionEvent::Load ( BinStream & stream)

Read the event Save() records.

Parameters
streamThe stream to read from.
Ghidra address:
NTSC-U/C: 0x001515f8
Ghidra address:
PAL: 0x00152e58

◆ GetPlayer()

unsigned char ChangeSectionEvent::GetPlayer ( ) const
inline
Returns
The player index.

◆ SetPlayer()

void ChangeSectionEvent::SetPlayer ( unsigned char nPlayer)
inline
Parameters
nPlayerThe player index.

◆ GetDirection()

int ChangeSectionEvent::GetDirection ( ) const
inline
Returns
The direction of the change, 0 or 1.

◆ SetDirection()

void ChangeSectionEvent::SetDirection ( int nDirection)
inline
Parameters
nDirectionThe direction of the change, 0 or 1.

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