~widelands-dev/widelands/bug-1796364-blinking-buildings

« back to all changes in this revision

Viewing changes to src/economy/road.h

  • Committer: GunChleoc
  • Date: 2018-12-13 16:43:41 UTC
  • mfrom: (8906.2.35 trunk)
  • Revision ID: fios@foramnagaidhlig.net-20181213164341-p7ez8i0yztoo62fm
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
        void presplit(Game&, Coords split);
114
114
        void postsplit(Game&, Flag&);
115
115
 
116
 
        bool notify_ware(Game& game, Flag& flag);
 
116
        bool notify_ware(Game& game, FlagId flagid);
117
117
        void update_wallet_chargetime(Game& game);
118
118
        void charge_wallet(Game& game);
119
119
        int32_t wallet() const;
151
151
        uint8_t carriers_count() const;
152
152
 
153
153
private:
154
 
        /// Counter that is incremented for every ware served by this road
155
 
        /// according to the delay of service and decremented over time.
 
154
        /// Counter that is incremented when a ware does not get a carrier for this
 
155
        /// road immediately and decremented over time.
156
156
        int32_t wallet_;
157
157
 
158
158
        /// holds the gametime when wallet_ was last charged
171
171
        using SlotVector = std::vector<CarrierSlot>;
172
172
        SlotVector carrier_slots_;
173
173
};
174
 
}
 
174
}  // namespace Widelands
175
175
 
176
176
#endif  // end of include guard: WL_ECONOMY_ROAD_H