diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-11-27 02:43:27 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-11-27 02:43:27 +0100 |
commit | 55ae5202de17fb7f7d1d00fc76defa194d7f9b06 (patch) | |
tree | e0b99d32048cb5ca744135495800ab597a87e9c1 /common/tile.h | |
parent | 90d77e977fe0db416a260c286b36079ab0694f21 (diff) |
Added List class to avoid reinventing features in each case.
Diffstat (limited to 'common/tile.h')
-rw-r--r-- | common/tile.h | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/common/tile.h b/common/tile.h index fe25a06..748d80b 100644 --- a/common/tile.h +++ b/common/tile.h @@ -1,9 +1,7 @@ #ifndef TILE_H #define TILE_H -#include <stdint.h> -#include <vector> -#include <boost/serialization/base_object.hpp> +#include "list.h" class Tile { public: @@ -99,15 +97,9 @@ class Tile { }; //! List of tiles. -class Tiles : public std::vector<Tile> { - public: - //! Sort the list of tiles. - void sort(); - - template<class Archive> - void serialize(Archive & ar, const unsigned int version) { - ar & boost::serialization::base_object<std::vector<Tile> >(*this); - } -}; +typedef List<Tile> Tiles; + +//! List of list of tiles. +typedef List<Tiles> Tilegroups; #endif |