Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JPAFieldBlock Class Reference

#include <JPAFieldBlock.h>

+ Collaboration diagram for JPAFieldBlock:

Public Member Functions

 JPAFieldBlock (u8 const *, JKRHeap *)
 
void init (JKRHeap *)
 
u32 getType ()
 
u32 getAddType ()
 
u32 getSttFlag ()
 
bool checkStatus (u16 flag)
 
f32 getMagRndm ()
 
f32 getVal1 ()
 
f32 getFadeInTime ()
 
f32 getFadeOutTime ()
 
f32 getEnTime ()
 
f32 getDisTime ()
 
u8 getCycle ()
 
f32 getFadeInRate ()
 
f32 getFadeOutRate ()
 
JGeometry::TVec3< f32 > & getPos ()
 
JGeometry::TVec3< f32 > & getDir ()
 
f32 getMag ()
 
void getPosOrig (JGeometry::TVec3< f32 > *pos)
 
void getDirOrig (JGeometry::TVec3< f32 > *dir)
 
f32 getMagOrig ()
 
void initOpParam ()
 
void prepare (JPAEmitterWorkData *work)
 
void calc (JPAEmitterWorkData *work, JPABaseParticle *ptcl)
 

Private Types

enum  Type {
  FIELD_GRAVITY , FIELD_AIR , FIELD_MAGNET , FIELD_NEWTON ,
  FIELD_VORTEX , FIELD_RANDOM , FIELD_DRAG , FIELD_CONVECTION ,
  FIELD_SPIN
}
 

Private Attributes

const JPAFieldBlockDatampData
 
JPAFieldBasempField
 
f32 mFadeInRate
 
f32 mFadeOutRate
 
JGeometry::TVec3< f32mPos
 
JGeometry::TVec3< f32mDir
 
f32 mMag
 

Member Enumeration Documentation

◆ Type

Enumerator
FIELD_GRAVITY 
FIELD_AIR 
FIELD_MAGNET 
FIELD_NEWTON 
FIELD_VORTEX 
FIELD_RANDOM 
FIELD_DRAG 
FIELD_CONVECTION 
FIELD_SPIN 

Constructor & Destructor Documentation

◆ JPAFieldBlock()

JPAFieldBlock::JPAFieldBlock ( u8 const data,
JKRHeap heap 
)

Member Function Documentation

◆ calc()

void JPAFieldBlock::calc ( JPAEmitterWorkData work,
JPABaseParticle ptcl 
)
inline

◆ checkStatus()

bool JPAFieldBlock::checkStatus ( u16  flag)
inline

◆ getAddType()

u32 JPAFieldBlock::getAddType ( )
inline

◆ getCycle()

u8 JPAFieldBlock::getCycle ( )
inline

◆ getDir()

JGeometry::TVec3< f32 > & JPAFieldBlock::getDir ( )
inline

◆ getDirOrig()

void JPAFieldBlock::getDirOrig ( JGeometry::TVec3< f32 > *  dir)
inline

◆ getDisTime()

f32 JPAFieldBlock::getDisTime ( )
inline

◆ getEnTime()

f32 JPAFieldBlock::getEnTime ( )
inline

◆ getFadeInRate()

f32 JPAFieldBlock::getFadeInRate ( )
inline

◆ getFadeInTime()

f32 JPAFieldBlock::getFadeInTime ( )
inline

◆ getFadeOutRate()

f32 JPAFieldBlock::getFadeOutRate ( )
inline

◆ getFadeOutTime()

f32 JPAFieldBlock::getFadeOutTime ( )
inline

◆ getMag()

f32 JPAFieldBlock::getMag ( )
inline

◆ getMagOrig()

f32 JPAFieldBlock::getMagOrig ( )
inline

◆ getMagRndm()

f32 JPAFieldBlock::getMagRndm ( )
inline

◆ getPos()

JGeometry::TVec3< f32 > & JPAFieldBlock::getPos ( )
inline

◆ getPosOrig()

void JPAFieldBlock::getPosOrig ( JGeometry::TVec3< f32 > *  pos)
inline

◆ getSttFlag()

u32 JPAFieldBlock::getSttFlag ( )
inline

◆ getType()

u32 JPAFieldBlock::getType ( )
inline

◆ getVal1()

f32 JPAFieldBlock::getVal1 ( )
inline

◆ init()

void JPAFieldBlock::init ( JKRHeap heap)

◆ initOpParam()

void JPAFieldBlock::initOpParam ( )
inline

◆ prepare()

void JPAFieldBlock::prepare ( JPAEmitterWorkData work)
inline

Member Data Documentation

◆ mDir

JGeometry::TVec3<f32> JPAFieldBlock::mDir
private

◆ mFadeInRate

f32 JPAFieldBlock::mFadeInRate
private

◆ mFadeOutRate

f32 JPAFieldBlock::mFadeOutRate
private

◆ mMag

f32 JPAFieldBlock::mMag
private

◆ mpData

const JPAFieldBlockData* JPAFieldBlock::mpData
private

◆ mpField

JPAFieldBase* JPAFieldBlock::mpField
private

◆ mPos

JGeometry::TVec3<f32> JPAFieldBlock::mPos
private

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