File WfBasicPickaxe.c

FileList > game > src > items > WfBasicPickaxe.c

Go to the source code of this file

  • #include "WfBasicPickaxe.h"
  • #include "WfItem.h"
  • #include "WfPlayer.h"
  • #include "Entities.h"
  • #include <stdlib.h>
  • #include "EngineUtils.h"
  • #include "Audio.h"
  • #include "WfItemHelpers.h"
  • #include "Maths.h"

Public Static Attributes

Type Name
struct WfItemDef gDef = /* multi line expression */
float gPickaxeDamage = 0.0f
float gPickaxeFanLength = 0.0f
float gPickaxeFanWidth = 0.0f
struct ZZFXSound gSwingSound = {1.0,0.05,32.268,0.008,0.046,0.208,0,1.0,2.662,2.312,0.0,0.0,0.178,1.778,0.0,0.106,0.0,0.431,0.174,0.076,0.0}

Public Functions

Type Name
void WfBasicPickAxeOnGameLayerPush (struct WfItemDef * pDef, struct GameFrameworkLayer * pLayer, DrawContext * drawContext, InputContext * inputContext)
void WfBasicPickaxeOnMakeCurrentItem (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer)
void WfBasicPickaxeOnStopBeingCurrentItem (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer)
bool WfBasicPickaxeOnUseItem (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer)
bool WfBasicPickaxeTryEquip (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer, enum WfEquipSlot slot)

Public Static Attributes Documentation

variable gDef

struct WfItemDef gDef;

variable gPickaxeDamage

float gPickaxeDamage;

variable gPickaxeFanLength

float gPickaxeFanLength;

variable gPickaxeFanWidth

float gPickaxeFanWidth;

variable gSwingSound

struct ZZFXSound gSwingSound;

Public Functions Documentation

function WfBasicPickAxeOnGameLayerPush

void WfBasicPickAxeOnGameLayerPush (
    struct WfItemDef * pDef,
    struct GameFrameworkLayer * pLayer,
    DrawContext * drawContext,
    InputContext * inputContext
) 

function WfBasicPickaxeOnMakeCurrentItem

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

function WfBasicPickaxeOnStopBeingCurrentItem

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

function WfBasicPickaxeOnUseItem

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

function WfBasicPickaxeTryEquip

bool WfBasicPickaxeTryEquip (
    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/WfBasicPickaxe.c