src/Menu/CCListModel.h

Go to the documentation of this file.
00001 /*
00002  * CCListModel Class
00003  * Crown and Cutlass
00004  */
00005  
00006 #if !defined( _CCLISTMODEL_H_)
00007 
00008 #define _CCLISTMODEL_H_
00009 
00010 #include <guichan.hpp>
00011 #include <string>
00012 #include <vector>
00013 
00014 using namespace std;
00015 
00016 class CCListModel: public gcn::ListModel {
00017   public:
00018     CCListModel();
00019     virtual ~CCListModel();
00020   
00021     void AddItem(std::string Item);
00022     void AddItem(std::string Item, int Position);
00023   
00024     void RemoveItem(std::string Item);
00025     void RemoveItem(int Position);
00026     
00027     int getNumberOfElements();
00028   
00029     std::string getElementAt(int i);
00030   private:
00031     vector<const char*> m_List;
00032 };
00033 
00034 #endif

Generated on Mon Jan 8 22:34:12 2007 for CrownandCutlass by  doxygen 1.4.7