diff options
Diffstat (limited to 'labb4/Unit.h')
| -rw-r--r-- | labb4/Unit.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/labb4/Unit.h b/labb4/Unit.h index 8c3a7a8..65e5db0 100644 --- a/labb4/Unit.h +++ b/labb4/Unit.h @@ -18,36 +18,36 @@ public: Unit(const Point& p); /* - * Return Point representation of Unit - */ + * Return Point representation of Unit + */ Point asPoint() const; /* - * Am I in the same square as u? - */ + * Am I in the same square as u? + */ bool at(const Unit& u) const; /* - * Can I catch u in one move? - */ + * Can I catch u in one move? + */ virtual bool attacks(const Unit& u) const; /* - * Take one step closer to u - */ + * Take one step closer to u + */ virtual void moveTowards(const Unit& u); //TODO comment virtual void draw() const; /* - * Teleport. Does not check for collision - */ + * Teleport. Does not check for collision + */ void teleport(); /* - * Euclidean distance to u - */ + * Euclidean distance to u + */ double distanceTo(const Unit& u) const; private: int x; // x position of this unit |
