From ba9d51fda0c59821cc531a1e0621210af704ca00 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sun, 27 Nov 2011 00:35:11 +0100 Subject: [PATCH] Tidyup. --- agent.h | 3 ++- map.h | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/agent.h b/agent.h index 3a77137..4a31728 100644 --- a/agent.h +++ b/agent.h @@ -11,7 +11,8 @@ public: class tile *tile; class connection *conn; - agent(int id_, class tile &tile_, class connection *conn_) : id (id_), tile (&tile_), conn (conn_) + agent(int id_, class tile &tile_, class connection *conn_) + : id (id_), tile (&tile_), conn (conn_) { put_at(tile_); }; diff --git a/map.h b/map.h index 15ebe99..a4fcc00 100644 --- a/map.h +++ b/map.h @@ -11,7 +11,8 @@ public: class agent *agent; - tile(int x_, int y_, class map &map_) : x(x_), y(y_), map(map_), agent(NULL) {}; + tile(int x_, int y_, class map &map_) + : x(x_), y(y_), map(map_), agent(NULL) {}; char symbol(void); virtual char type_symbol(void) = 0; @@ -26,7 +27,8 @@ public: class tile_ground : public tile { public: - tile_ground(int x_, int y_, struct map &map_) : tile(x_, y_, map_) {}; + tile_ground(int x_, int y_, struct map &map_) + : tile(x_, y_, map_) {}; private: char type_symbol(void); }; @@ -36,7 +38,8 @@ public: class tile **tiles; int w, h; - map(int w_, int h_) : w(w_), h(h_) + map(int w_, int h_) + : w(w_), h(h_) { tiles = new class tile * [w * h];