Skip to content

Commit c03c3f6

Browse files
committed
ddnet only collision api
1 parent 12f8d4c commit c03c3f6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/twbl/teeworlds/collision.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ class CCollision
1111
public:
1212
int GetTile(int x, int y) const { return -404; }
1313
int IntersectLine(vec2 Pos0, vec2 Pos1, vec2 *pOutCollision, vec2 *pOutBeforeCollision) const { return -404; }
14+
15+
// TODO: this is ddnet only
16+
int GetPureMapIndex(float x, float y) const { return 0; }
17+
int GetPureMapIndex(vec2 Pos) const { return GetPureMapIndex(Pos.x, Pos.y); }
18+
int GetTileIndex(int Index) const { return 0; }
1419
};
1520

1621
#endif

0 commit comments

Comments
 (0)