MCPcopy Create free account
hub / github.com/OfficialCodeNoodles/2D-Minecraft / Entity

Method Entity

2D Minecraft v 1.0/src/entity/Entity.cpp:9–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8namespace engine {
9 Entity::Entity() :
10 velocityScaler(1.0f, 1.0f),
11 size({ 1.0f, 1.0f }),
12 mass(1.0f),
13 immunityFrames(0),
14 dead(false)
15 {
16 numOfEntities++;
17 }
18 Entity::~Entity() {
19 numOfEntities--;
20 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected