xml_formation.hh

00001 /*
00002 ** TowBowlTactics, an adaptation of the tabletop game Blood Bowl.
00003 **
00004 ** Copyright (C) 2006 The TBT Team.
00005 **
00006 ** This program is free software; you can redistribute it and/or
00007 ** modify it under the terms of the GNU General Public License
00008 ** as published by the Free Software Foundation; either version 2
00009 ** of the License, or (at your option) any later version.
00010 **
00011 ** The complete GNU General Public Licence Notice can be found as the
00012 ** `NOTICE' file in the root directory.
00013 **
00014 ** The TBT Team consists of people listed in the `AUTHORS' file.
00015 */
00016 
00017 #ifndef XML_FORMATION_HH_
00018 # define XML_FORMATION_HH_
00019 
00020 # include "xml/xml.hh"
00021 
00022 BEGIN_NS(xml);
00023 
00031 class XMLFormation : public XML
00032 {
00033 public:
00034   XMLFormation();
00035 
00037   bool switchFormationId(int formation_id);
00038     
00042   Position getPos(int player_id);
00043 
00044   virtual void parse(const std::string& filename);
00045 
00046 protected:
00047   virtual const char* getExpectedRoot() const;
00048   int formation_id_;
00049 };
00050 
00051 END_NS(xml);
00052 
00053 #endif /* !XML_FORMATION_HH_ */

Generated on Sat Jun 23 16:07:24 2007 for Stechec/TBT by  doxygen 1.4.7