File WfEquipableItem.c

FileList > game > src > items > WfEquipableItem.c

Go to the source code of this file

  • #include "WfEquipableItem.h"
  • #include <stdbool.h>
  • #include <string.h>
  • #include "StringKeyHashMap.h"
  • #include "WfPlayer.h"
  • #include "Log.h"
  • #include "AssertLib.h"

Classes

Type Name
struct WfEquipableItem

Public Attributes

Type Name
struct HashMap gEquipableItems = /* multi line expression */

Public Functions

Type Name
void WfEquipableMakeCurrentItem (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer)
bool WfEquipableOnUseItem (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer)
void WfEquipableStopBeingCurrentItem (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer)
bool WfEquipableTryEquip (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer, enum WfEquipSlot slot, struct WfItemDef * pDef)
bool WfEquipableTryUnEquip (struct Entity2D * pPlayer, struct GameFrameworkLayer * pLayer, enum WfEquipSlot slot, struct WfItemDef * pDef)
void WfInitEquipable (struct WfItemDef * pDef)

Public Static Functions

Type Name
struct WfAnimationSet GetAnimationSetForDef (struct WfItemDef * pDef)
enum WfEquipSlot GetEquipSlot (const char * equipSlotName)
void PopulateAnimationSetLayerFromName (struct WfAnimationSetLayer * pLayer, const char * name)

Public Attributes Documentation

variable gEquipableItems

struct HashMap gEquipableItems;

Public Functions Documentation

function WfEquipableMakeCurrentItem

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

function WfEquipableOnUseItem

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

function WfEquipableStopBeingCurrentItem

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

function WfEquipableTryEquip

bool WfEquipableTryEquip (
    struct Entity2D * pPlayer,
    struct GameFrameworkLayer * pLayer,
    enum WfEquipSlot slot,
    struct WfItemDef * pDef
) 

function WfEquipableTryUnEquip

bool WfEquipableTryUnEquip (
    struct Entity2D * pPlayer,
    struct GameFrameworkLayer * pLayer,
    enum WfEquipSlot slot,
    struct WfItemDef * pDef
) 

function WfInitEquipable

void WfInitEquipable (
    struct WfItemDef * pDef
) 

Public Static Functions Documentation

function GetAnimationSetForDef

static struct WfAnimationSet GetAnimationSetForDef (
    struct WfItemDef * pDef
) 

function GetEquipSlot

static enum WfEquipSlot GetEquipSlot (
    const char * equipSlotName
) 

function PopulateAnimationSetLayerFromName

static void PopulateAnimationSetLayerFromName (
    struct WfAnimationSetLayer * pLayer,
    const char * name
) 


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