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

« back to all changes in this revision

Viewing changes to bauer/wegbauer.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:
69
69
                bautyp_mask=255,
70
70
                bot_flag=0x100,                                 // do not connect to other ways
71
71
                elevated_flag=0x200,                    // elevated structure
 
72
                terraform_flag=0x400,
72
73
                tunnel_flag=0x800                               // underground structure
73
74
        };
74
75
 
75
76
private:
 
77
        // used in intern_calc_route, saved in the otherwise unused route_t::ANode->count
76
78
        enum build_type_t {
77
 
                build_straight = 1
 
79
                build_straight = 1,
 
80
                terraform      = 2
78
81
        };
79
82
 
80
83
        struct next_gr_t
129
132
        uint32 maximum;    // hoechste Suchtiefe
130
133
 
131
134
        koord3d_vector_t route;
 
135
        // index in route with terraformed tiles
 
136
        vector_tpl<uint32> terraform_index;
132
137
 
 
138
public:
133
139
        /* This is the core routine for the way search
134
140
        * it will check
135
141
        * A) allowed step
137
143
        * @author prissi
138
144
        */
139
145
        bool is_allowed_step( const grund_t *from, const grund_t *to, long *costs );
 
146
private:
140
147
 
141
148
        // checks, if we can built a bridge here ...
142
149
        // may modify next_gr array!
214
221
        // allowed slope?
215
222
        static bool check_slope( const grund_t *from, const grund_t *to );
216
223
 
 
224
        bool check_terraforming( const grund_t *from, const grund_t *to, uint8* new_from_slope=NULL, uint8* new_to_slope=NULL);
 
225
        void do_terraforming();
 
226
 
217
227
        void baue();
218
228
};
219
229
 
 
230
ENUM_BITSET(wegbauer_t::bautyp_t);
 
231
 
220
232
#endif