~ubuntu-branches/ubuntu/raring/simutrans/raring-proposed

« back to all changes in this revision

Viewing changes to besch/fabrik_besch.h

  • Committer: Package Import Robot
  • Author(s): Ansgar Burchardt
  • Date: 2011-11-03 19:59:02 UTC
  • mfrom: (1.2.7)
  • Revision ID: package-import@ubuntu.com-20111103195902-uopgwf488mfctb75
Tags: 111.0-1
* New upstream release.
* debian/rules: Update get-orig-source target for new upstream release.
* Use xz compression for source and binary packages.
* Use override_* targets to simplify debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 * Fields are xref'ed from skin_besch_t
21
21
 */
22
22
class field_class_besch_t : public obj_besch_t {
23
 
        friend class factory_field_class_writer_t;
24
23
        friend class factory_field_class_reader_t;
25
24
        friend class factory_field_group_reader_t;              // Knightly : this is a special case due to besch restructuring
26
25
 
46
45
 
47
46
// Knightly : this besch now only contains common, shared data regarding fields
48
47
class field_group_besch_t : public obj_besch_t {
49
 
        friend class factory_field_group_writer_t;
50
48
        friend class factory_field_group_reader_t;
51
49
 
52
50
private:
94
92
 *      0   SKin
95
93
 */
96
94
class rauch_besch_t : public obj_besch_t {
97
 
        friend class factory_smoke_writer_t;
98
95
        friend class factory_smoke_reader_t;
99
96
 
100
97
private:
117
114
                return pos_off;
118
115
        }
119
116
 
120
 
        // offset in pixel (remember intern size TILE_STEPS==16)
 
117
        // offset in pixel (depends on OBJECT_OFFSET_STEPS==16)
121
118
        koord get_xy_off(uint8 rotation) const {
122
119
                switch( rotation%4 ) {
123
120
                        case 1: return koord( 0, xy_off.y+xy_off.x/2 );
143
140
 */
144
141
class fabrik_lieferant_besch_t : public obj_besch_t {
145
142
        friend class factory_supplier_reader_t;
146
 
        friend class factory_supplier_writer_t;
147
143
 
148
144
private:
149
145
        uint16  kapazitaet;
170
166
 *      0   Ware
171
167
 */
172
168
class fabrik_produkt_besch_t : public obj_besch_t {
173
 
        friend class factory_product_writer_t;
174
169
        friend class factory_product_reader_t;
175
170
 
176
171
private:
211
206
 */
212
207
class fabrik_besch_t : public obj_besch_t {
213
208
        friend class factory_reader_t;
214
 
        friend class factory_writer_t;
215
209
 
216
210
public:
217
 
        enum platzierung {Land, Wasser, Stadt};
 
211
        enum site_t { Land, Wasser, Stadt };
218
212
 
219
213
private:
220
 
        enum platzierung platzierung;
 
214
        site_t platzierung;
221
215
        uint16 produktivitaet;
222
216
        uint16 bereich;
223
217
        uint16 gewichtung;      // Wie wahrscheinlich soll der Bau sein?
227
221
        uint8 fields;   // only if there are any ...
228
222
        uint16 pax_level;
229
223
        bool electricity_producer;
 
224
        uint16 expand_probability;
 
225
        uint16 expand_minimum;
 
226
        uint16 expand_range;
 
227
        uint16 expand_times;
 
228
        uint16 electric_boost;
 
229
        uint16 pax_boost;
 
230
        uint16 mail_boost;
 
231
        uint16 electric_amount;
 
232
        uint16 pax_demand;
 
233
        uint16 mail_demand;
230
234
 
231
235
public:
232
236
        /*
257
261
        uint get_produkte() const { return produkte; }
258
262
 
259
263
        /* where to built */
260
 
        enum platzierung get_platzierung() const { return platzierung; }
 
264
        site_t get_platzierung() const { return platzierung; }
261
265
        int get_gewichtung() const { return gewichtung;     }
262
266
 
263
267
        uint8 get_kennfarbe() const { return kennfarbe; }
271
275
 
272
276
        int is_electricity_producer() const { return electricity_producer; }
273
277
 
 
278
        uint16 get_expand_probability() const { return expand_probability; }
 
279
        uint16 get_expand_minumum() const { return expand_minimum; }
 
280
        uint16 get_expand_range() const { return expand_range; }
 
281
        uint16 get_expand_times() const { return expand_times; }
 
282
 
 
283
        uint16 get_electric_boost() const { return electric_boost; }
 
284
        uint16 get_pax_boost() const { return pax_boost; }
 
285
        uint16 get_mail_boost() const { return mail_boost; }
 
286
        uint16 get_electric_amount() const { return electric_amount; }
 
287
        uint16 get_pax_demand() const { return pax_demand; }
 
288
        uint16 get_mail_demand() const { return mail_demand; }
 
289
 
274
290
        void calc_checksum(checksum_t *chk) const;
275
291
};
276
292