The problem with picking up items under a dead body is fixed but now need to fix combat.
This commit is contained in:
parent
97fe02d99d
commit
f84b63f0e6
7 changed files with 93 additions and 43 deletions
|
@ -38,6 +38,8 @@ class SpatialMap {
|
|||
bool occupied(Point pos) const;
|
||||
bool something_there(Point at) const;
|
||||
DinkyECS::Entity get(Point at) const;
|
||||
DinkyECS::Entity find(Point at, std::function<bool(CollisionData)> cb) const;
|
||||
|
||||
FoundEntities neighbors(Point position, bool diag=false) const;
|
||||
|
||||
void distance_sorted(SortedEntities& sorted_sprites, Point from, int max_distance);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue