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

#include <wind.hpp>

Public Member Functions

 CWind ()
 
void SetDir (float *direction)
 
void SetVelocity (float speed)
 
void GetWind (float *out)
 
void GetWindNoise (float *out)
 
void Step ()
 

Public Attributes

float gust
 
sceVu0FVECTOR dir
 
float velocity
 

Detailed Description

The wind one scene blows over its cloth. It holds a direction and a steady speed, and wanders a gust strength between nothing and that speed so that the cloth it drives never settles into a fixed shape.

Definition at line 12 of file wind.hpp.

Constructor & Destructor Documentation

◆ CWind()

CWind::CWind ( )

Stills the wind and starts the gust strength somewhere in its range, so that two scenes built in the same frame do not gust together.

Mangled name:
__ct__5CWindFv
Address:
0x13B5E0
Size:
0x54

Definition at line 34 of file wind.cpp.

Member Function Documentation

◆ SetDir()

void CWind::SetDir ( float *  direction)

Points the wind along a direction, which need not already be a unit vector.

Mangled name:
SetDir__5CWindFPf
Address:
0x13B480
Size:
0x24
Return type:
Not recovered.

Definition at line 5 of file wind.cpp.

◆ SetVelocity()

void CWind::SetVelocity ( float  speed)

Sets the speed the wind blows at when it is gusting at full strength.

Mangled name:
SetVelocity__5CWindFf
Address:
0x13B4B0
Size:
0xC
Return type:
Not recovered.

Definition at line 9 of file wind.cpp.

◆ GetWind()

void CWind::GetWind ( float *  out)

Gives the wind at its steady speed, ignoring the gust.

Mangled name:
GetWind__5CWindFPf
Address:
0x13B4C0
Size:
0x30
Return type:
Not recovered.

Definition at line 13 of file wind.cpp.

◆ GetWindNoise()

void CWind::GetWindNoise ( float *  out)

Gives the wind as it blows this frame, the steady speed scaled by the gust strength.

Mangled name:
GetWindNoise__5CWindFPf
Address:
0x13B4F0
Size:
0x38
Return type:
Not recovered.

Definition at line 17 of file wind.cpp.

◆ Step()

void CWind::Step ( )

Walks the gust strength one step and holds it inside its range.

Mangled name:
Step__5CWindFv
Address:
0x13B530
Size:
0xAC
Return type:
Not recovered.

Definition at line 21 of file wind.cpp.

Member Data Documentation

◆ gust

float CWind::gust

Share of the speed the wind blows at now, from zero to one.

Definition at line 14 of file wind.hpp.

◆ dir

sceVu0FVECTOR CWind::dir

Unit vector the wind blows along.

Definition at line 15 of file wind.hpp.

◆ velocity

float CWind::velocity

Speed the wind blows at when the gust is at full strength.

Definition at line 16 of file wind.hpp.