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"
  • #include "WfTileLayers.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 Functions

Type Name
void WfBasicHoeOnGameLayerPop (struct WfItemDef * pDef, struct GameFrameworkLayer * pLayer, DrawContext * drawContext, InputContext * inputContext)
void WfBasicHoeOnGameLayerPush (struct WfItemDef * pDef, struct GameFrameworkLayer * pLayer, DrawContext * drawContext, InputContext * inputContext)
void WfBasicHoeOnMakeCurrentItem (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer)
void WfBasicHoeOnStopBeingCurrentItem (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer)
bool WfBasicHoeOnUseItem (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer)
bool WfBasicHoeTryEquip (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer, enum WfEquipSlot slot)

Public Static Functions

Type Name
static OBJECT_POOL (struct HoeUseContext)
bool ProcessHoeUsage (struct SDTimer * pTimer)
void SetTileTilled (int x, int y, TileIndex * pIndex, struct TileMap * pTM, hAtlas atlas)
bool TileVectorContains (TileIndex t)

Macros

Type Name
define HOE_TILE_DISTANCE_IN_FRONT_OF_PLAYER 32
define NUM_GRASS_TILES 3

Public Attributes Documentation

variable gThrustSnd

struct ZZFXSound gThrustSnd;

Public Functions Documentation

function WfBasicHoeOnGameLayerPop

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

function WfBasicHoeOnGameLayerPush

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

function WfBasicHoeOnMakeCurrentItem

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

function WfBasicHoeOnStopBeingCurrentItem

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

function WfBasicHoeOnUseItem

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

function WfBasicHoeTryEquip

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

Public Static Functions Documentation

function OBJECT_POOL

static static OBJECT_POOL (
    struct HoeUseContext
) 

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 TileVectorContains

static bool TileVectorContains (
    TileIndex t
) 

Macro Definition Documentation

define HOE_TILE_DISTANCE_IN_FRONT_OF_PLAYER

#define HOE_TILE_DISTANCE_IN_FRONT_OF_PLAYER `32`

define NUM_GRASS_TILES

#define NUM_GRASS_TILES `3`


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