MCPcopy Create free account
hub / github.com/ddnet/ddnet / IsValidEntity

Function IsValidEntity

src/game/mapitems.cpp:143–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143bool IsValidEntity(int Index)
144{
145 Index -= ENTITY_OFFSET;
146 return (
147 (Index >= ENTITY_SPAWN && Index <= ENTITY_LASER_O_FAST) ||
148 (Index >= ENTITY_PLASMAE && Index <= ENTITY_ARMOR_LASER) ||
149 (Index >= ENTITY_DRAGGER_WEAK && Index <= ENTITY_DRAGGER_STRONG_NW) ||
150 Index == ENTITY_DOOR);
151}
152
153bool IsRotatableTile(int Index)
154{

Callers 3

IsValidGameTileFunction · 0.85
IsValidFrontTileFunction · 0.85
IsValidSwitchTileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected