File WfBasicSword.c

FileList > game > src > items > WfBasicSword.c

Go to the source code of this file

  • #include "WfBasicSword.h"
  • #include "WfItem.h"
  • #include "WfPlayer.h"
  • #include "Entities.h"
  • #include <stdlib.h>

Public Static Attributes

Type Name
struct WfItemDef gDef = /* multi line expression */

Public Functions

Type Name
void WfAddBasicSwordDef ()
void WfBasicSwordOnMakeCurrentItem (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer)
void WfBasicSwordOnStopBeingCurrentItem (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer)
bool WfBasicSwordOnUseItem (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer)
bool WfBasicSwordTryEquip (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer, enum WfEquipSlot slot)

Public Static Attributes Documentation

variable gDef

struct WfItemDef gDef;

Public Functions Documentation

function WfAddBasicSwordDef

void WfAddBasicSwordDef () 

function WfBasicSwordOnMakeCurrentItem

void WfBasicSwordOnMakeCurrentItem (
    struct Entity2D * pPlayer,
    struct GameFrameworkLayer * pLayer
) 

function WfBasicSwordOnStopBeingCurrentItem

void WfBasicSwordOnStopBeingCurrentItem (
    struct Entity2D * pPlayer,
    struct GameFrameworkLayer * pLayer
) 

function WfBasicSwordOnUseItem

bool WfBasicSwordOnUseItem (
    struct Entity2D * pPlayer,
    struct GameFrameworkLayer * pLayer
) 

function WfBasicSwordTryEquip

bool WfBasicSwordTryEquip (
    struct Entity2D * pPlayer,
    struct GameFrameworkLayer * pLayer,
    enum WfEquipSlot slot
) 


The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/game/src/items/WfBasicSword.c