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

#include <shot_effect_pack.hpp>

Public Member Functions

void Set (int index, float *position, float *direction)
 
int Entry (BT_SHOT_EFFECT *description, unsigned int *resource, int texture_block, CDataAlloc2< 1 > *allocator, int slots)
 
void SetUserID2 (int id)
 
void SetDmg (int damage)
 

Public Attributes

CSHOT_EFFECT effect [5]
 
s32 current_effect
 

Detailed Description

Holds the projectile effects the dungeon can run, and which one is being set up.

Definition at line 12 of file shot_effect_pack.hpp.

Member Function Documentation

◆ Set()

void CSHOT_EFFECT_PACK::Set ( int  index,
float *  position,
float *  direction 
)
inline

Fires one effect from a position in a direction, and selects it.

Definition at line 21 of file shot_effect_pack.hpp.

◆ Entry()

int CSHOT_EFFECT_PACK::Entry ( BT_SHOT_EFFECT *  description,
unsigned int *  resource,
int  texture_block,
CDataAlloc2< 1 > *  allocator,
int  slots 
)

Loads an effect into a free slot, and returns the slot, or -1 when none is free.

Mangled name:
Entry__17CSHOT_EFFECT_PACKFP14BT_SHOT_EFFECTPUiiP14CDataAlloc2_1_i
Address:
0x1AE4C0
Size:
0x100

Definition at line 591 of file shot_effect.cpp.

◆ SetUserID2()

void CSHOT_EFFECT_PACK::SetUserID2 ( int  id)
Mangled name:
SetUserID2__17CSHOT_EFFECT_PACKFi
Address:
0x1AE5C0
Size:
0x44
Return type:
Not recovered.

Definition at line 607 of file shot_effect.cpp.

◆ SetDmg()

void CSHOT_EFFECT_PACK::SetDmg ( int  damage)
Mangled name:
SetDmg__17CSHOT_EFFECT_PACKFi
Address:
0x1AE610
Size:
0x44
Return type:
Not recovered.

Definition at line 613 of file shot_effect.cpp.

Member Data Documentation

◆ effect

CSHOT_EFFECT CSHOT_EFFECT_PACK::effect[5]

The effects the dungeon can run.

Definition at line 14 of file shot_effect_pack.hpp.

◆ current_effect

s32 CSHOT_EFFECT_PACK::current_effect

Effect that SetUserID2 and SetDmg apply to.

Definition at line 16 of file shot_effect_pack.hpp.