From 55ae5202de17fb7f7d1d00fc76defa194d7f9b06 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 27 Nov 2010 02:43:27 +0100 Subject: Added List class to avoid reinventing features in each case. --- common/tile.h | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'common/tile.h') 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 -#include -#include +#include "list.h" class Tile { public: @@ -99,15 +97,9 @@ class Tile { }; //! List of tiles. -class Tiles : public std::vector { - public: - //! Sort the list of tiles. - void sort(); - - template - void serialize(Archive & ar, const unsigned int version) { - ar & boost::serialization::base_object >(*this); - } -}; +typedef List Tiles; + +//! List of list of tiles. +typedef List Tilegroups; #endif -- cgit v1.2.3