File Entity2DCollection.h

FileList > engine > include > Entity2DCollection.h

Go to the source code of this file

  • #include "HandleDefs.h"
  • #include "ObjectPool.h"
  • #include "DynArray.h"

Classes

Type Name
struct DynamicEnt2DList
struct DynamicEntityListItem
Entities that are moving dynamically, we keep in a list so we can cull with brute force. The overhead of removing and inserting them from the quadtree every time they move is too much, while the quadtree remains a good option for static entities.
struct Entity2DCollection
struct EntityToEntityMessage

Public Types

Type Name
enum EngineEntity2EntityMessageType
typedef void(* FreeEntityToEntityMsgFn

Public Functions

Type Name
HDynamicEntityListItem DynL_AddEntity (struct DynamicEnt2DList * pDynList, HEntity2D hEnt)
int DynL_GetSize (struct DynamicEnt2DList * pDynList)
void DynL_RemoveItem (struct DynamicEnt2DList * pDynList, HDynamicEntityListItem hListItem)

Public Types Documentation

enum EngineEntity2EntityMessageType

enum EngineEntity2EntityMessageType {
    E2EM_Interact,
    E2EM_Damage,
    E2EM_EngineLastType
};

typedef FreeEntityToEntityMsgFn

typedef void(* FreeEntityToEntityMsgFn) (struct EntityToEntityMessage *);

Public Functions Documentation

function DynL_AddEntity

HDynamicEntityListItem DynL_AddEntity (
    struct DynamicEnt2DList * pDynList,
    HEntity2D hEnt
) 

function DynL_GetSize

int DynL_GetSize (
    struct DynamicEnt2DList * pDynList
) 

function DynL_RemoveItem

void DynL_RemoveItem (
    struct DynamicEnt2DList * pDynList,
    HDynamicEntityListItem hListItem
) 


The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/engine/include/Entity2DCollection.h