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

« back to all changes in this revision

Viewing changes to freight_list_sorter.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:
9
9
template<class T> class vector_tpl;
10
10
class ware_t;
11
11
class cbuffer_t;
 
12
class karte_t;
 
13
 
12
14
 
13
15
class freight_list_sorter_t
14
16
{
15
17
public:
16
18
        enum sort_mode_t { by_name=0, by_via=1, by_via_sum=2, by_amount=3};
17
19
 
18
 
        static void sort_freight(const vector_tpl<ware_t>* warray, cbuffer_t& buf, sort_mode_t sort_mode, const slist_tpl<ware_t>* full_list, const char* what_doing);
 
20
        static void sort_freight(const vector_tpl<ware_t>* warray, cbuffer_t& buf, sort_mode_t sort_mode, const slist_tpl<ware_t>* full_list, const char* what_doing, karte_t *world);
19
21
 
20
22
private:
 
23
        static karte_t *welt;
 
24
 
21
25
        static sort_mode_t sortby;
22
26
 
23
27
        static bool compare_ware(ware_t const& w1, ware_t const& w2);