File WfBasicHoe.c

FileList > game > src > items > WfBasicHoe.c

Go to the source code of this file

  • #include "WfBasicHoe.h"
  • #include <stdlib.h>
  • #include "WfItem.h"
  • #include "WfPlayer.h"
  • #include "Entities.h"
  • #include "EngineUtils.h"
  • #include "Audio.h"
  • #include "ObjectPool.h"
  • #include "GameFramework.h"
  • #include "WfItemHelpers.h"
  • #include "Atlas.h"
  • #include "IntTypes.h"
  • #include "Log.h"
  • #include "WfDryGroundLUT.h"

Classes

Type Name
struct HoeUseContext

Public Attributes

Type Name
struct ZZFXSound gThrustSnd = {1.0,0.05,64.799,0.023,0.129,0.395,0,1.0,0.0,-6.535,0.0,0.0,0.161,1.945,16.886331,0.464,0.229,0.461,0.156,0.0,-3441.073}

Public Static Attributes

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

Public Functions

Type Name
void WfAddBasicHoeDef ()

Public Static Functions

Type Name
static OBJECT_POOL (struct HoeUseContext)
void OnGameLayerPop (struct WfItemDef * pDef, struct GameFrameworkLayer * pLayer, DrawContext * drawContext, InputContext * inputContext)
void OnGameLayerPush (struct WfItemDef * pDef, struct GameFrameworkLayer * pLayer, DrawContext * drawContext, InputContext * inputContext)
void OnMakeCurrentItem (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer)
void OnStopBeingCurrentItem (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer)
bool OnUseItem (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer)
bool ProcessHoeUsage (struct SDTimer * pTimer)
void SetTileTilled (int x, int y, TileIndex * pIndex, struct TileMap * pTM, hAtlas atlas)
bool TryEquip (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer, enum WfEquipSlot slot)

Macros

Type Name
define HOE_TILE_DISTANCE_IN_FRONT_OF_PLAYER 32

Public Attributes Documentation

variable gThrustSnd

struct ZZFXSound gThrustSnd;

Public Static Attributes Documentation

variable gDef

struct WfItemDef gDef;

Public Functions Documentation

function WfAddBasicHoeDef

void WfAddBasicHoeDef () 

Public Static Functions Documentation

function OBJECT_POOL

static static OBJECT_POOL (
    struct HoeUseContext
) 

function OnGameLayerPop

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

function OnGameLayerPush

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

function OnMakeCurrentItem

static void OnMakeCurrentItem (
    struct Entity2D * pPlayer,
    struct GameFrameworkLayer * pLayer
) 

function OnStopBeingCurrentItem

static void OnStopBeingCurrentItem (
    struct Entity2D * pPlayer,
    struct GameFrameworkLayer * pLayer
) 

function OnUseItem

static bool OnUseItem (
    struct Entity2D * pPlayer,
    struct GameFrameworkLayer * pLayer
) 

function ProcessHoeUsage

static bool ProcessHoeUsage (
    struct SDTimer * pTimer
) 

function SetTileTilled

static void SetTileTilled (
    int x,
    int y,
    TileIndex * pIndex,
    struct TileMap * pTM,
    hAtlas atlas
) 

function TryEquip

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

Macro Definition Documentation

define HOE_TILE_DISTANCE_IN_FRONT_OF_PLAYER

#define HOE_TILE_DISTANCE_IN_FRONT_OF_PLAYER `32`


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