Stardew Engine
Loading...
Searching...
No Matches
WfPlayer.c File Reference
#include "WfPlayer.h"
#include "BinarySerializer.h"
#include "Game2DLayer.h"
#include "Entities.h"
#include "ObjectPool.h"
#include "DrawContext.h"
#include "GameFramework.h"
#include "AnimatedSprite.h"
#include "Camera2D.h"
#include "WfEntities.h"
#include "WfUI.h"
#include "WfEnums.h"
#include "WfItem.h"
#include "AssertLib.h"
#include "WfPersistantGameData.h"
#include "GameFrameworkEvent.h"
#include "Scripting.h"
#include <string.h>
#include "Log.h"
#include "Network.h"
#include "NetworkID.h"
Include dependency graph for WfPlayer.c:

Macros

#define WALKING_UP_MALE   "walk-base-male-up"
 
#define WALKING_DOWN_MALE   "walk-base-male-down"
 
#define WALKING_LEFT_MALE   "walk-base-male-left"
 
#define WALKING_RIGHT_MALE   "walk-base-male-right"
 
#define WALKING_UP_FEMALE   "walk-base-female-up"
 
#define WALKING_DOWN_FEMALE   "walk-base-female-down"
 
#define WALKING_LEFT_FEMALE   "walk-base-female-left"
 
#define WALKING_RIGHT_FEMALE   "walk-base-female-right"
 
#define PLAYER_SPRITE_COMP_INDEX   1
 
#define PLAYER_COLLIDER_COMP_INDEX   0
 

Functions

void WfSetPlayerOverlayAnimations (enum WfDirection dir, struct GameFrameworkLayer *pLayer, struct WfPlayerEntData *pPlayerEntData, struct Entity2D *pEnt)
 
float WfGetPlayerSortPosition (struct Entity2D *pEnt)
 
void WfPlayerGetGroundContactPoint (struct Entity2D *pEnt, vec2 outPos)
 
void WfPlayerPostPhys (struct Entity2D *pEnt, struct GameFrameworkLayer *pLayer, float deltaT)
 
void WfMakeIntoPlayerEntityBase (struct Entity2D *pEnt, struct GameFrameworkLayer *pLayer, vec2 spawnAtGroundPos, bool bNetworkControlled, int networkPlayerNum)
 
void WfSerializePlayerEntity (struct BinarySerializer *bs, struct Entity2D *pInEnt, struct GameLayer2DData *pData)
 
void WfDeSerializePlayerEntity (struct BinarySerializer *bs, struct Entity2D *pOutEnt, struct GameLayer2DData *pData)
 
void WfMakeIntoPlayerEntity (struct Entity2D *pEnt, struct GameFrameworkLayer *pLayer, vec2 spawnAtGroundPos)
 
struct WfAnimationSetWfGetPlayerAnimationSet (struct Entity2D *pInPlayerEnt)
 
void WfSetPlayerAnimationSet (struct Entity2D *pInPlayerEnt, const struct WfAnimationSet *pInSet)
 
struct WfPlayerEntDataWfGetPlayerEntData (struct Entity2D *pInEnt)
 
struct Component2DWfGetPlayerAnimationLayerComponent (struct Entity2D *pPlayer, enum WfAnimationLayerNames layer)
 

Macro Definition Documentation

◆ PLAYER_COLLIDER_COMP_INDEX

#define PLAYER_COLLIDER_COMP_INDEX   0

◆ PLAYER_SPRITE_COMP_INDEX

#define PLAYER_SPRITE_COMP_INDEX   1

◆ WALKING_DOWN_FEMALE

#define WALKING_DOWN_FEMALE   "walk-base-female-down"

◆ WALKING_DOWN_MALE

#define WALKING_DOWN_MALE   "walk-base-male-down"

◆ WALKING_LEFT_FEMALE

#define WALKING_LEFT_FEMALE   "walk-base-female-left"

◆ WALKING_LEFT_MALE

#define WALKING_LEFT_MALE   "walk-base-male-left"

◆ WALKING_RIGHT_FEMALE

#define WALKING_RIGHT_FEMALE   "walk-base-female-right"

◆ WALKING_RIGHT_MALE

#define WALKING_RIGHT_MALE   "walk-base-male-right"

◆ WALKING_UP_FEMALE

#define WALKING_UP_FEMALE   "walk-base-female-up"

◆ WALKING_UP_MALE

#define WALKING_UP_MALE   "walk-base-male-up"

Function Documentation

◆ WfDeSerializePlayerEntity()

void WfDeSerializePlayerEntity ( struct BinarySerializer bs,
struct Entity2D pOutEnt,
struct GameLayer2DData pData 
)

◆ WfGetPlayerAnimationLayerComponent()

struct Component2D * WfGetPlayerAnimationLayerComponent ( struct Entity2D pPlayer,
enum WfAnimationLayerNames  layer 
)

◆ WfGetPlayerAnimationSet()

struct WfAnimationSet * WfGetPlayerAnimationSet ( struct Entity2D pInPlayerEnt)

◆ WfGetPlayerEntData()

struct WfPlayerEntData * WfGetPlayerEntData ( struct Entity2D pInEnt)

◆ WfGetPlayerSortPosition()

float WfGetPlayerSortPosition ( struct Entity2D pEnt)

◆ WfMakeIntoPlayerEntity()

void WfMakeIntoPlayerEntity ( struct Entity2D pEnt,
struct GameFrameworkLayer pLayer,
vec2  spawnAtGroundPos 
)

◆ WfMakeIntoPlayerEntityBase()

void WfMakeIntoPlayerEntityBase ( struct Entity2D pEnt,
struct GameFrameworkLayer pLayer,
vec2  spawnAtGroundPos,
bool  bNetworkControlled,
int  networkPlayerNum 
)

◆ WfPlayerGetGroundContactPoint()

void WfPlayerGetGroundContactPoint ( struct Entity2D pEnt,
vec2  outPos 
)

◆ WfPlayerPostPhys()

void WfPlayerPostPhys ( struct Entity2D pEnt,
struct GameFrameworkLayer pLayer,
float  deltaT 
)

◆ WfSerializePlayerEntity()

void WfSerializePlayerEntity ( struct BinarySerializer bs,
struct Entity2D pInEnt,
struct GameLayer2DData pData 
)

◆ WfSetPlayerAnimationSet()

void WfSetPlayerAnimationSet ( struct Entity2D pInPlayerEnt,
const struct WfAnimationSet pInSet 
)

◆ WfSetPlayerOverlayAnimations()

void WfSetPlayerOverlayAnimations ( enum WfDirection  dir,
struct GameFrameworkLayer pLayer,
struct WfPlayerEntData pPlayerEntData,
struct Entity2D pEnt 
)