diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2020-11-10 14:57:44 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2020-11-10 14:57:44 +0100 |
| commit | 00b84ef1485204e03395e7c90634bc7de16cd9fb (patch) | |
| tree | af7c08bba9908d61d6076a93ee7a2c83773f201d /labb4/Unit.h | |
| parent | 01862f6b40c0f8fbc0123f1ac5140a406c268251 (diff) | |
| download | tddd86-00b84ef1485204e03395e7c90634bc7de16cd9fb.tar.gz | |
comments and cleanup
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 |
