File WfBasicAxe.c

FileList > game > src > items > WfBasicAxe.c

Go to the source code of this file

  • #include "WfBasicAxe.h"
  • #include "WfItem.h"
  • #include "WfPlayer.h"
  • #include "Entities.h"
  • #include <stdlib.h>
  • #include "EngineUtils.h"
  • #include "Audio.h"
  • #include "TimerPool.h"
  • #include "Game2DLayer.h"
  • #include "GameFramework.h"
  • #include "ObjectPool.h"
  • #include "WfItemHelpers.h"
  • #include "EntityQuadTree.h"
  • #include "Geometry.h"
  • #include "Maths.h"
  • #include "WfEntityMessages.h"
  • #include "Log.h"

Classes

Type Name
struct AxeHitHandlerContext

Public Static Attributes

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

Public Functions

Type Name
void WfAddBasicAxeDef ()

Public Static Functions

Type Name
static OBJECT_POOL (struct AxeHitHandlerContext)
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 ProcessAxeUsage (struct SDTimer * pTimer)
bool TryEquip (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer, enum WfEquipSlot slot)

Macros

Type Name
define AXE_DAMAGE 10.0f
define AXE_FAN_LENGTH (64.0F)
define AXE_FAN_WIDTH DEGREES\_TO\_RADIANS(45.0f)

Public Static Attributes Documentation

variable gDef

struct WfItemDef gDef;

Public Functions Documentation

function WfAddBasicAxeDef

void WfAddBasicAxeDef () 

Public Static Functions Documentation

function OBJECT_POOL

static static OBJECT_POOL (
    struct AxeHitHandlerContext
) 

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 ProcessAxeUsage

static bool ProcessAxeUsage (
    struct SDTimer * pTimer
) 

function TryEquip

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

Macro Definition Documentation

define AXE_DAMAGE

#define AXE_DAMAGE `10.0f`

define AXE_FAN_LENGTH

#define AXE_FAN_LENGTH `(64.0F)`

define AXE_FAN_WIDTH

#define AXE_FAN_WIDTH `DEGREES_TO_RADIANS(45.0f)`


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