MCPcopy Create free account
hub / github.com/CytopiaTeam/Cytopia / decreaseHeight

Method decreaseHeight

src/engine/GameObjects/MapNode.cxx:52–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void MapNode::decreaseHeight()
53{
54 const int height = m_isoCoordinates.height;
55
56 if (height > 0)
57 {
58 m_isoCoordinates.height--;
59 m_sprite->isoCoordinates = m_isoCoordinates;
60 }
61}
62
63void MapNode::render() const { m_sprite->render(); }
64

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected