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
Public Static Attributes
Public Functions
Public Static Functions
Macros
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