src/train.h
changeset 7908 403a9694c42d
parent 7631 e810ef25497e
child 7973 ce69b7781d4a
equal deleted inserted replaced
7907:5e026fa6089a 7908:403a9694c42d
   260 struct Train : public Vehicle {
   260 struct Train : public Vehicle {
   261 	/** Initializes the Vehicle to a train */
   261 	/** Initializes the Vehicle to a train */
   262 	Train() { this->type = VEH_TRAIN; }
   262 	Train() { this->type = VEH_TRAIN; }
   263 
   263 
   264 	/** We want to 'destruct' the right class. */
   264 	/** We want to 'destruct' the right class. */
   265 	virtual ~Train() {}
   265 	virtual ~Train() { this->PreDestructor(); }
   266 
   266 
   267 	const char *GetTypeString() const { return "train"; }
   267 	const char *GetTypeString() const { return "train"; }
   268 	void MarkDirty();
   268 	void MarkDirty();
   269 	void UpdateDeltaXY(Direction direction);
   269 	void UpdateDeltaXY(Direction direction);
   270 	ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_TRAIN_INC : EXPENSES_TRAIN_RUN; }
   270 	ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_TRAIN_INC : EXPENSES_TRAIN_RUN; }