DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
CCursol Class Reference

#include <cursol.hpp>

Public Member Functions

 CCursol ()
 
void Init ()
 
int Move ()
 
void Set (float new_target_y)
 
int GetSelect ()
 
int GetPos ()
 

Public Attributes

float y
 
float target_y
 
int alpha [5]
 
int select
 
char arrived
 

Detailed Description

Controls selection and easing for the title menu cursor.

Definition at line 22 of file cursol.hpp.

Constructor & Destructor Documentation

◆ CCursol()

CCursol::CCursol ( )
     Constructs a cursor in its initial menu state.
Mangled name:
__ct__7CCursolFv
Address:
0x1DD4CC0
Size:
0x30

Definition at line 7 of file cursol.cpp.

Member Function Documentation

◆ Init()

void CCursol::Init ( )
     Resets the cursor selection and animation state.
Mangled name:
Init__7CCursolFv
Address:
0x1DD4CF0
Size:
0x2C
Return type:
Not recovered.

Definition at line 14 of file cursol.cpp.

◆ Move()

int CCursol::Move ( )
     Processes input and advances cursor movement.
Mangled name:
Move__7CCursolFv
Address:
0x1DD4D20
Size:
0x384
Return type:
Not recovered.

Definition at line 29 of file cursol.cpp.

◆ Set()

void CCursol::Set ( float  new_target_y)
     Sets the cursor's target vertical position.
Mangled name:
Set__7CCursolFf
Address:
0x1DD50B0
Size:
0xC
Return type:
Not recovered.

Definition at line 172 of file cursol.cpp.

◆ GetSelect()

int CCursol::GetSelect ( )
     Returns the currently selected menu row.
Mangled name:
GetSelect__7CCursolFv
Address:
0x1DD50C0
Size:
0xC
Return type:
Not recovered.

Definition at line 176 of file cursol.cpp.

◆ GetPos()

int CCursol::GetPos ( )
     Returns the cursor's current display position.
Mangled name:
GetPos__7CCursolFv
Address:
0x1DD50D0
Size:
0x24
Return type:
Not recovered.

Definition at line 180 of file cursol.cpp.

Member Data Documentation

◆ y

float CCursol::y

Height the cursor has eased to.

Definition at line 24 of file cursol.hpp.

◆ target_y

float CCursol::target_y

Height the cursor is easing towards.

Definition at line 25 of file cursol.hpp.

◆ alpha

int CCursol::alpha[5]

Opacity of each menu row.

Definition at line 26 of file cursol.hpp.

◆ select

int CCursol::select

Row the cursor stands on.

See also
TitleMenuRow.

Definition at line 27 of file cursol.hpp.

◆ arrived

char CCursol::arrived

Whether the cursor has reached its target.

Definition at line 28 of file cursol.hpp.