~widelands-dev/widelands/trunk

« back to all changes in this revision

Viewing changes to src/ware.h

  • Committer: sigra
  • Date: 2006-12-23 18:46:49 UTC
  • Revision ID: git-v1:67bf0bc43dc815643daab9030aaf865d012e9cba
Add a script that detects misuse of tabs in sourcecode. Fix the misuses that it found and do a few more cleanups on those lines.

git-svn-id: https://widelands.svn.sourceforge.net/svnroot/widelands/trunk@1884 37b2a8de-5219-0410-9f54-a31bc463ab9c

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
Note that multiple tribes can define a worker with the same name. The different
53
53
"version" of a worker must perform the same job, but they can look differently.
54
54
*/
55
 
#define WARE_MENU_PIC_W         24
56
 
#define WARE_MENU_PIC_H         24
 
55
#define WARE_MENU_PIC_W  24
 
56
#define WARE_MENU_PIC_H  24
57
57
 
58
58
class Item_Ware_Descr : public Map_Object_Descr {
59
59
public:
74
74
        void parse(const char *directory, Profile *prof);
75
75
 
76
76
private:
77
 
   std::string    m_name;
78
 
   std::string          m_descname;
79
 
        std::string             m_helptext;
80
 
        std::string             m_menu_pic_fname;
81
 
        std::string             m_pic_queue_full_fname;
82
 
        std::string             m_pic_queue_empty_fname;
83
 
 
84
 
        uint                            m_menu_pic;
85
 
 
86
 
        uint                            m_pic_queue_full;
87
 
        uint                            m_pic_queue_empty;
 
77
        std::string m_name;
 
78
        std::string m_descname;
 
79
        std::string m_helptext;
 
80
        std::string m_menu_pic_fname;
 
81
        std::string m_pic_queue_full_fname;
 
82
        std::string m_pic_queue_empty_fname;
 
83
 
 
84
        uint        m_menu_pic;
 
85
 
 
86
        uint        m_pic_queue_full;
 
87
        uint        m_pic_queue_empty;
88
88
 
89
89
public:
90
90
        static Item_Ware_Descr* create_from_dir(const char* name, const char* directory);
112
112
   void set_nrwares( int i ) { assert(m_wares.size()==0); m_wares.resize(i, 0); }
113
113
 
114
114
private:
115
 
        std::vector<int>        m_wares;
 
115
        std::vector<int> m_wares;
116
116
 
117
117
        friend bool operator==(const WareList &wl1, const WareList &wl2);
118
118
};