src/train.h
branchnoai
changeset 10294 7798ae816af8
parent 10142 56ee7da4ad56
child 10355 ee4b5f7a5bf2
equal deleted inserted replaced
10292:7856e972f8aa 10294:7798ae816af8
   294 	void UpdateDeltaXY(Direction direction);
   294 	void UpdateDeltaXY(Direction direction);
   295 	ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_TRAIN_INC : EXPENSES_TRAIN_RUN; }
   295 	ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_TRAIN_INC : EXPENSES_TRAIN_RUN; }
   296 	WindowClass GetVehicleListWindowClass() const { return WC_TRAINS_LIST; }
   296 	WindowClass GetVehicleListWindowClass() const { return WC_TRAINS_LIST; }
   297 	void PlayLeaveStationSound() const;
   297 	void PlayLeaveStationSound() const;
   298 	bool IsPrimaryVehicle() const { return IsFrontEngine(this); }
   298 	bool IsPrimaryVehicle() const { return IsFrontEngine(this); }
   299 	int GetImage(Direction direction) const;
   299 	SpriteID GetImage(Direction direction) const;
   300 	int GetDisplaySpeed() const { return this->u.rail.last_speed * 10 / 16; }
   300 	int GetDisplaySpeed() const { return this->u.rail.last_speed * 10 / 16; }
   301 	int GetDisplayMaxSpeed() const { return this->u.rail.cached_max_speed * 10 / 16; }
   301 	int GetDisplayMaxSpeed() const { return this->u.rail.cached_max_speed * 10 / 16; }
   302 	Money GetRunningCost() const;
   302 	Money GetRunningCost() const;
   303 	bool IsInDepot() const { return CheckTrainInDepot(this, false) != -1; }
   303 	bool IsInDepot() const { return CheckTrainInDepot(this, false) != -1; }
   304 	bool IsStoppedInDepot() const { return CheckTrainStoppedInDepot(this) >= 0; }
   304 	bool IsStoppedInDepot() const { return CheckTrainStoppedInDepot(this) >= 0; }