From 00b84ef1485204e03395e7c90634bc7de16cd9fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Tue, 10 Nov 2020 14:57:44 +0100 Subject: comments and cleanup --- labb4/Unit.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'labb4/Unit.h') 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 -- cgit v1.2.1