wavelength 1.0.0
Loading...
Searching...
No Matches
OvyChat::Line Class Reference

One line of the chat, which slides between the rows of the panel. More...

#include <ovychat.h>

Public Member Functions

 Line (DataArray *pConfig, DataArray *pDefaults, RndText *pText)
 Construct a line on a text, with the slide of chat_line_slide.
 ~Line ()
 Destroy the slide, and forget the length of the slides.
void SetPosition (bool bJump, float fTime, float fRow)
 Move the line to a row, sliding from where it is or jumping there.
void SetColor (int nPlayer)
 Colour the line for the player who wrote it.
bool Update (float fTime, float fDelta)
 Move the text to the position the slide has at a time.
RndText * GetText () const
Interpolator * GetSlide () const

Static Public Attributes

static float sSlideTime
 The length of a slide, the end of the input range of the first slide built, or -1e9.

Detailed Description

One line of the chat, which slides between the rows of the panel.

The RTTI names the type. The object is 8 bytes.

Constructor & Destructor Documentation

◆ Line()

OvyChat::Line::Line ( DataArray * pConfig,
DataArray * pDefaults,
RndText * pText )

Construct a line on a text, with the slide of chat_line_slide.

Parameters
pConfigThe configuration section of the game mode.
pDefaultsThe section of defaults.
pTextThe text of the line.
Ghidra address:
NTSC-U/C: 0x001c1e98
Ghidra address:
PAL: 0x001cac38

◆ ~Line()

OvyChat::Line::~Line ( )

Destroy the slide, and forget the length of the slides.

Ghidra address:
NTSC-U/C: 0x001c1f20
Ghidra address:
PAL: 0x001cacc0

Member Function Documentation

◆ SetPosition()

void OvyChat::Line::SetPosition ( bool bJump,
float fTime,
float fRow )

Move the line to a row, sliding from where it is or jumping there.

Parameters
bJumpWhether the line jumps to the row.
fTimeThe time of the move, in milliseconds.
fRowThe position of the row.
Ghidra address:
NTSC-U/C: 0x001c1f98
Ghidra address:
PAL: 0x001cad38

◆ SetColor()

void OvyChat::Line::SetColor ( int nPlayer)

Colour the line for the player who wrote it.

Parameters
nPlayerThe player, or a negative value for white.
Ghidra address:
NTSC-U/C: 0x001c2060
Ghidra address:
PAL: 0x001cae00

◆ Update()

bool OvyChat::Line::Update ( float fTime,
float fDelta )

Move the text to the position the slide has at a time.

Parameters
fTimeThe time, in milliseconds.
fDeltaThe milliseconds since the last poll. The routine does not read it.
Returns
Whether the text moved.
Ghidra address:
NTSC-U/C: 0x001c2180
Ghidra address:
PAL: 0x001caf20

◆ GetText()

RndText * OvyChat::Line::GetText ( ) const
inline
Returns
The text.

◆ GetSlide()

Interpolator * OvyChat::Line::GetSlide ( ) const
inline
Returns
The position of the text over time.

Member Data Documentation

◆ sSlideTime

float OvyChat::Line::sSlideTime
static

The length of a slide, the end of the input range of the first slide built, or -1e9.

Ghidra address:
NTSC-U/C: 0x003af95c
Ghidra address:
PAL: 0x0042e7f0

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