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

#include <d_a_shop_item_static.h>

+ Inheritance diagram for daShopItem_c:
+ Collaboration diagram for daShopItem_c:

Public Types

enum  {
  SHOP_ITEMNO_SOLD , SHOP_ITEMNO_OIL , SHOP_ITEMNO_RED , SHOP_ITEMNO_MILK ,
  SHOP_ITEMNO_HALF_MILK , SHOP_ITEMNO_ARROW , SHOP_ITEMNO_SHIELD_B , SHOP_ITEMNO_SHIELD_A ,
  SHOP_ITEMNO_BOMB , SHOP_ITEMNO_WATER_BOMB , SHOP_ITEMNO_POKE_BOMB , SHOP_ITEMNO_BOMB_BAG ,
  SHOP_ITEMNO_BOMB_BAG_LV2 , SHOP_ITEMNO_LAND_MINE , SHOP_ITEMNO_BOTTLE2 , SHOP_ITEMNO_BEE_CHILD ,
  SHOP_ITEMNO_PACHINKO , SHOP_ITEMNO_BLUE , SHOP_ITEMNO_HAWKEYE , SHOP_ITEMNO_ARMOR ,
  SHOP_ITEMNO_ARMOR_SOLD , SHOP_ITEMNO_GREEN , SHOP_ITEMNO_DROP , SHOP_ITEMNO_MAX
}
 

Public Member Functions

csXyzgetRotateP ()
 
cXyzgetPosP ()
 
const chargetShopArcname ()
 
u16 getHeapSize ()
 
void CreateInit ()
 
void set_mtx ()
 
bool _execute ()
 
bool _draw ()
 
int _create ()
 
int _delete ()
 
virtual void setListStart ()
 
virtual void setShadow ()
 
virtual BOOL chkFlag (int)
 
virtual s8 getTevFrm ()
 
virtual s8 getBtpFrm ()
 
virtual u8 getShadowSize ()
 
virtual u8 getCollisionH ()
 
virtual u8 getCollisionR ()
 
u8 getShopItemID () const
 
s16 getAngleX () const
 
void setAngleX (s16 angle)
 
s16 getAngleY () const
 
void setAngleY (s16 angle)
 
- Public Member Functions inherited from daItemBase_c
u8 getItemNo ()
 
void hide ()
 
void show ()
 
void changeDraw ()
 
u8 chkDraw ()
 
void dead ()
 
u8 chkDead ()
 
int CreateItemHeap (char const *, s16, s16, s16, s16, s16, s16, s16)
 
int DeleteBase (char const *)
 
void setListEnd ()
 
void animPlay (f32, f32, f32, f32, f32, f32)
 
const daItemBase_datagetData ()
 
virtual int DrawBase ()
 
virtual void settingBeforeDraw ()
 
virtual void setTevStr ()
 
virtual void animEntry ()
 
virtual void RotateYBase ()
 
virtual int clothCreate ()
 
virtual int __CreateHeap ()
 
- Public Member Functions inherited from fopAc_ac_c
 fopAc_ac_c ()
 
 fopAc_ac_c ()
 
 ~fopAc_ac_c ()
 
 fopAc_ac_c ()
 
 ~fopAc_ac_c ()
 
 fopAc_ac_c ()
 
 ~fopAc_ac_c ()
 
 fopAc_ac_c ()
 
 ~fopAc_ac_c ()
 
 fopAc_ac_c ()
 
 ~fopAc_ac_c ()
 
 fopAc_ac_c ()
 
 ~fopAc_ac_c ()
 

Static Public Attributes

static ResourceData const mData [23]
 
static f32 const m_cullfar_max = 5000.0f
 
- Static Public Attributes inherited from daItemBase_c
static daItemBase_data const m_data
 
- Static Public Attributes inherited from fopAc_ac_c
static u32 stopStatus
 

Private Attributes

Mtx mMtx
 
int field_0x95c
 
s16 mAngleX
 
s16 mAngleY
 
u8 mShopItemID
 

Additional Inherited Members

- Static Public Member Functions inherited from fopAc_ac_c
static void setStopStatus (u32 status)
 
- Public Attributes inherited from daItemBase_c
request_of_phase_process_class mPhase
 
J3DModelmpModel
 
mDoExt_btkAnmmpBtkAnm
 
mDoExt_bpkAnmmpBpkAnm
 
mDoExt_brkAnmmpBrkAnm
 
mDoExt_bckAnmmpBckAnm
 
mDoExt_btpAnmmpBtpAnm
 
dBgS_ObjAcch mAcch
 
dBgS_AcchCir mAcchCir
 
dCcD_Stts mCcStts
 
dCcD_Cyl mCcCyl
 
u32 mShadowKey
 
u32 mItemBitNo
 
int m_timer
 
s16 m_get_timer
 
u8 m_itemNo
 
u8 field_0x92b
 
- Public Attributes inherited from fopAc_ac_c
int actor_type
 
create_tag_class actor_tag
 
create_tag_class draw_tag
 
profile_method_classsub_method
 
JKRSolidHeapheap
 
dEvt_info_c eventInfo
 
dKy_tevstr_c tevStr
 
u16 setID
 
u8 group
 
u8 cullType
 
u8 demoActorID
 
s8 subtype
 
u8 carryType
 
u32 actor_status
 
u32 actor_condition
 
fpc_ProcID parentActorID
 
actor_place home
 
actor_place old
 
actor_place current
 
csXyz shape_angle
 
cXyz scale
 
cXyz speed
 
MtxP cullMtx
 
union { 
 
   cull_box   box 
 
   cull_sphere   sphere 
 
cull 
 
f32 cullSizeFar
 
J3DModelmodel
 
dJntCol_cjntCol
 
f32 speedF
 
f32 gravity
 
f32 maxFallSpeed
 
cXyz eyePos
 
actor_attention_types attention_info
 
s16 field_0x560
 
s16 health
 
u8 field_0x564
 
u8 field_0x565
 
u8 field_0x566
 
s8 field_0x567
 
- Public Attributes inherited from leafdraw_class
base_process_class mBase
 
leafdraw_method_classmpDrawMtd
 
s8 mbUnk0
 
u8 mbUnk1
 
draw_priority_class mDwPi
 

Member Enumeration Documentation

◆ anonymous enum

Enumerator
SHOP_ITEMNO_SOLD 
SHOP_ITEMNO_OIL 
SHOP_ITEMNO_RED 
SHOP_ITEMNO_MILK 
SHOP_ITEMNO_HALF_MILK 
SHOP_ITEMNO_ARROW 
SHOP_ITEMNO_SHIELD_B 
SHOP_ITEMNO_SHIELD_A 
SHOP_ITEMNO_BOMB 
SHOP_ITEMNO_WATER_BOMB 
SHOP_ITEMNO_POKE_BOMB 
SHOP_ITEMNO_BOMB_BAG 
SHOP_ITEMNO_BOMB_BAG_LV2 
SHOP_ITEMNO_LAND_MINE 
SHOP_ITEMNO_BOTTLE2 
SHOP_ITEMNO_BEE_CHILD 
SHOP_ITEMNO_PACHINKO 
SHOP_ITEMNO_BLUE 
SHOP_ITEMNO_HAWKEYE 
SHOP_ITEMNO_ARMOR 
SHOP_ITEMNO_ARMOR_SOLD 
SHOP_ITEMNO_GREEN 
SHOP_ITEMNO_DROP 
SHOP_ITEMNO_MAX 

Member Function Documentation

◆ _create()

int daShopItem_c::_create ( )
inline

◆ _delete()

int daShopItem_c::_delete ( )
inline

◆ _draw()

bool daShopItem_c::_draw ( )

◆ _execute()

bool daShopItem_c::_execute ( )

◆ chkFlag()

BOOL daShopItem_c::chkFlag ( int  i_flag)
virtual

Reimplemented from daItemBase_c.

◆ CreateInit()

void daShopItem_c::CreateInit ( )

◆ getAngleX()

s16 daShopItem_c::getAngleX ( ) const
inline

◆ getAngleY()

s16 daShopItem_c::getAngleY ( ) const
inline

◆ getBtpFrm()

s8 daShopItem_c::getBtpFrm ( )
virtual

Reimplemented from daItemBase_c.

◆ getCollisionH()

u8 daShopItem_c::getCollisionH ( )
virtual

Reimplemented from daItemBase_c.

◆ getCollisionR()

u8 daShopItem_c::getCollisionR ( )
virtual

Reimplemented from daItemBase_c.

◆ getHeapSize()

u16 daShopItem_c::getHeapSize ( )

◆ getPosP()

cXyz * daShopItem_c::getPosP ( )

◆ getRotateP()

csXyz * daShopItem_c::getRotateP ( )

◆ getShadowSize()

u8 daShopItem_c::getShadowSize ( )
virtual

Reimplemented from daItemBase_c.

◆ getShopArcname()

const char * daShopItem_c::getShopArcname ( )

d_a_shop_item.cpp Shop Item Actor

◆ getShopItemID()

u8 daShopItem_c::getShopItemID ( ) const
inline

◆ getTevFrm()

s8 daShopItem_c::getTevFrm ( )
virtual

Reimplemented from daItemBase_c.

◆ set_mtx()

void daShopItem_c::set_mtx ( )

◆ setAngleX()

void daShopItem_c::setAngleX ( s16  angle)
inline

◆ setAngleY()

void daShopItem_c::setAngleY ( s16  angle)
inline

◆ setListStart()

void daShopItem_c::setListStart ( )
virtual

Reimplemented from daItemBase_c.

◆ setShadow()

void daShopItem_c::setShadow ( )
virtual

Reimplemented from daItemBase_c.

Member Data Documentation

◆ field_0x95c

int daShopItem_c::field_0x95c
private

◆ m_cullfar_max

const f32 daShopItem_c::m_cullfar_max = 5000.0f
static

◆ mAngleX

s16 daShopItem_c::mAngleX
private

◆ mAngleY

s16 daShopItem_c::mAngleY
private

◆ mData

ResourceData const daShopItem_c::mData
static
Initial value:
= {
{"B_mD_sold", 3, -1, -1, -1, -1, -1, -1, 0.0f, 1.0f, 0, {0, 0x8000, 0}, 0, 0, 0, 0, -1, -1},
{"B_mD_oil", 3, -1, -1, -1, -1, -1, -1, 0.0f, 1.0f, 0, {0, 0, 0}, 0, 0, 0, 0, -1, -1},
{"O_mD_red", 3, -1, -1, -1, -1, -1, -11, 0.0f, 1.0f, 0, {0, 0, 0}, 0, 0, 0, 0, -1, -1},
{"B_mD_milk", 3, -1, -1, -1, -1, -1, -1, 0.0f, 1.0f, 0, {0, 0, 0}, 0, 0, 0, 0, -1, -1},
{"O_mD_bott", 6, 12, -1, -1, -1, 9, 15, 0.0f, 1.0f, 0, {0, 0, 0}, 4, 0, 0, 0, 3, 1},
{"O_mD_arw", 3, -1, -1, -1, -1, -1, -1, 0.0f, 1.0f, 0, {0, 0, 0}, 0, 0, 0, 0, -1, -1},
{"O_mD_SHB", 3, -1, -1, -1, -1, -1, -1, 30.0f, 1.0f, 0, {0, 0x7FFF, 0}, 0, 0, 0, 0, -1, -1},
{"O_mD_SHA", 3, -1, -1, -1, -1, -1, -1, 30.0f, 1.0f, 0, {0, 0x7FFF, 0}, 0, 0, 0, 0, -1, -1},
{"O_mD_bomb", 3, -1, -1, -1, -1, -1, -1, 0.0f, 1.0f, 0, {0, 0, 0}, 0, 0, 0, 0, 0, -1},
{"O_mD_pg", 3, -1, -1, -1, -1, -1, -1, 0.0f, 1.0f, 0, {0, 0, 0}, 0, 0, 0, 0, 0, -1},
{"O_mD_bi", 3, -1, -1, -1, -1, -1, -1, 0.0f, 1.0f, 0, {0, 0, 0}, 0, 0, 0, 0, 0, -1},
{"O_mD_bmcs", 3, -1, -1, -1, -1, -1, -1, 0.0f, 1.0f, 0, {0, 0, 0}, 0, 0, 0, 0, 0, -1},
{"O_mD_bmc2", 3, -1, -1, -1, -1, -1, -1, 0.0f, 1.0f, 0, {0, 0, 0}, 0, 0, 0, 0, 0, -1},
{"O_mD_jira", 3, -1, -1, -1, -1, -1, -1, 0.0f, 1.0f, 0, {0, 0, 0}, 0, 0, 0, 0, 0, -1},
{"O_mD_bott", 6, 12, -1, -1, -1, 9, 15, 0.0f, 1.0f, 0, {0, 0, 0}, 4, 0, 0, 0, 1, 0},
{"O_mD_hati", 3, -1, -1, -1, -1, -1, -1, 0.0f, 1.0f, 0, {0, 0, 0}, 0, 0, 0, 0, -1, -1},
{"O_mD_pach", 3, -1, -1, -1, -1, -1, -1, 0.0f, 1.0f, 0, {0, 0, 0}, 0, 0, 0, 0, -1, -1},
{"O_mD_blue", 3, -1, -1, -1, -1, -1, -11, 0.0f, 1.0f, 0, {0, 0, 0}, 0, 0, 0, 0, -1, -1},
{"O_mD_hawk", 3, -1, -1, -1, -1, -1, -1, 0.0f, 1.0f, 0, {0, 0, 0}, 0, 0, 0, 0, -1, -1},
{"O_mD_marm", 3, -1, -1, -1, -1, -1, -1, 0.0f, 1.0f, 0, {0, 0, 0}, 0, 0, 0, 0, -1, -1},
{"O_mD_marm", 4, -1, -1, -1, -1, -1, -1, 0.0f, 1.0f, 0, {0, 0, 0}, 0, 0, 0, 0, -1, -1},
{"O_mD_gren", 3, -1, -1, -1, -1, -1, -1, 0.0f, 1.0f, 0, {0, 0, 0}, 0, 0, 0, 0, -1, -1},
{"O_mD_bott", 6, 12, -1, -1, -1, 9, 15, 0.0f, 1.0f, 0, {0, 0, 0}, 4, 0, 0, 0, 12, 0},
}

◆ mMtx

Mtx daShopItem_c::mMtx
private

◆ mShopItemID

u8 daShopItem_c::mShopItemID
private

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