File WfDebris.c
FileList > entities > WfDebris.c
Go to the source code of this file
#include "WfDebris.h"
#include "BinarySerializer.h"
#include "Entities.h"
#include "Game2DLayer.h"
#include "WfGameLayerData.h"
#include "ObjectPool.h"
#include "Log.h"
#include "AssertLib.h"
#include "WfEntities.h"
#include "GameFramework.h"
#include "WfEntityMessages.h"
#include "ZzFX.h"
#include "Audio.h"
#include "WfTileLayers.h"
Classes
Public Attributes
| Type |
Name |
| struct ZZFXSound |
gDestroyRockSFX = {1.0,0.05,88.199,0.028,0.125,0.42,5,1.0,0.0,4.522,0.0,0.0,0.0,0.359,6.641019,0.816,0.0,0.423,0.166,0.0,0.0}
|
| struct ZZFXSound |
gLogDestroySFX = {1.0,0.05,590.6,0.005,0.28,0.257,1,1.0,0.0,0.0,-196.86,0.159,0.165,0.12,15.624050000000004,0.168,0.0,0.635,0.227,0.421,0.0}
|
| struct ZZFXSound |
gLogHitSFX = {1.0,0.05,63.14,0.049,0.086,0.203,2,1.0,3.678,-4.693,0.0,0.0,0.261,0.185,0.0,0.699,0.0,0.388,0.108,0.087,0.0}
|
| struct ZZFXSound |
gPickaxeHitRockSFX = {1.0,0.05,62.25,0.011,0.133,0.298,3,1.0,1.503,0.0,0.0,0.0,0.29,1.191,0.0,0.619,0.0,0.485,0.2,0.0,-2357.049}
|
| struct ZZFXSound |
gWrongDamageTypeSFX = {1.0,0.05,55.748,0.066,0.252,0.447,0,1.0,0.0,0.0,0.0,0.0,0.062,1.633,0.0,0.333,0.433,0.309,0.171,0.057,0.0}
|
Public Functions
| Type |
Name |
| HEntity2D |
WfAddDebrisBasedAt (float x, float y, struct WfDebrisDef * def, struct GameLayer2DData * pGameLayerData)
|
| void |
WfDeSerializeDebrisEntity (struct BinarySerializer * bs, struct Entity2D * pOutEnt, struct GameLayer2DData * pData)
|
| void |
WfDebrisGetGroundContactPoint (struct Entity2D * pEnt, vec2 outPoint)
|
| void |
WfMakeEntityIntoDebrisBasedAt (struct Entity2D * pEnt, int xTile, int yTile, struct WfDebrisDef * def, struct GameLayer2DData * pGameLayerData)
|
| void |
WfSerializeDebrisEntity (struct BinarySerializer * bs, struct Entity2D * pInEnt, struct GameLayer2DData * pData)
|
Public Static Functions
Public Attributes Documentation
variable gDestroyRockSFX
struct ZZFXSound gDestroyRockSFX;
variable gLogDestroySFX
struct ZZFXSound gLogDestroySFX;
variable gLogHitSFX
struct ZZFXSound gLogHitSFX;
variable gPickaxeHitRockSFX
struct ZZFXSound gPickaxeHitRockSFX;
variable gWrongDamageTypeSFX
struct ZZFXSound gWrongDamageTypeSFX;
Public Functions Documentation
function WfAddDebrisBasedAt
HEntity2D WfAddDebrisBasedAt (
float x,
float y,
struct WfDebrisDef * def,
struct GameLayer2DData * pGameLayerData
)
function WfDeSerializeDebrisEntity
void WfDeSerializeDebrisEntity (
struct BinarySerializer * bs,
struct Entity2D * pOutEnt,
struct GameLayer2DData * pData
)
void WfDebrisGetGroundContactPoint (
struct Entity2D * pEnt,
vec2 outPoint
)
function WfMakeEntityIntoDebrisBasedAt
void WfMakeEntityIntoDebrisBasedAt (
struct Entity2D * pEnt,
int xTile,
int yTile,
struct WfDebrisDef * def,
struct GameLayer2DData * pGameLayerData
)
function WfSerializeDebrisEntity
void WfSerializeDebrisEntity (
struct BinarySerializer * bs,
struct Entity2D * pInEnt,
struct GameLayer2DData * pData
)
Public Static Functions Documentation
function DebrisHandleEntityMsg
static void DebrisHandleEntityMsg (
struct Entity2D * pEnt,
struct Entity2D * pSender,
struct EntityToEntityMessage * pMsg,
struct GameFrameworkLayer * pLayer
)
function OBJECT_POOL
static static OBJECT_POOL (
struct WfDebrisData
)
The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/game/src/entities/WfDebris.c