bb5/teamroster2/common/Position.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 POSITION_HH_
00018 #define POSITION_HH_
00019 #include <vector>
00020 
00021 class Position
00022 {
00023 public:
00024     // -----------------------------------------------------------------------
00025     //  Constructors
00026     // -----------------------------------------------------------------------
00027     Position();
00028     virtual ~Position();
00029     
00030     // -----------------------------------------------------------------------
00031     //  Getters & Setters
00032     // -----------------------------------------------------------------------
00033     int getQuantity();
00034     void setQuantity(int qty);
00035     const char* getTitle();
00036     void setTitle(const char* title);
00037     long getCost();
00038     void setCost(long cost);
00039     int getMovementAllowance();
00040     void setMovementAllowance(int ma);
00041     int getStrength();
00042     void setStrength(int st);
00043     int getAgility();
00044     void setAgility(int ag);
00045     int getArmourValue();
00046     void setArmourValue(int av);
00047     
00048     std::vector<const char*> getSkills();
00049     void addSkill(const char* skill);
00050     
00051     const char* getNormalSkills();
00052     void setNormalSkills(const char* normalSkills);
00053     const char* getDoubleSkills();
00054     void setDoubleSkills(const char* doubleSkills);
00055     const char* getDisplay();
00056     void setDisplay(const char* display);
00057      
00058 private: 
00059     // -----------------------------------------------------------------------
00060     //  Private data members
00061     // -----------------------------------------------------------------------
00062     int quantity_;
00063     const char* title_;
00064     long cost_;
00065     int movementAllowance_;
00066     int strength_;
00067     int agility_;
00068     int armourValue_;
00069     std::vector <const char*> vSkills_;
00070     const char* skills_;  // Skills list as string
00071     const char* normalSkills_;
00072     const char* doubleSkills_;
00073     const char* display_;
00074 
00075 };
00076 
00077 #endif /*POSITION_HH_*/

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