(svn r12346) -Fix [FS#1748, FS#1825](r9874, r11872): Remove duplicated and inconsistent code wrt. autoreplace with rules in both vehicles' group and ALL_GROUP.
/* $Id$ *//** @file ship.h */#ifndef SHIP_H#define SHIP_H#include"vehicle_base.h"#include"engine.h"#include"economy_func.h"voidCcBuildShip(boolsuccess,TileIndextile,uint32p1,uint32p2);voidRecalcShipStuff(Vehicle*v);voidGetShipSpriteSize(EngineIDengine,uint&width,uint&height);/** * This class 'wraps' Vehicle; you do not actually instantiate this class. * You create a Vehicle using AllocateVehicle, so it is added to the pool * and you reinitialize that to a Train using: * v = new (v) Ship(); * * As side-effect the vehicle type is set correctly. */structShip:publicVehicle{/** Initializes the Vehicle to a ship */Ship(){this->type=VEH_SHIP;}/** We want to 'destruct' the right class. */virtual~Ship(){this->PreDestructor();}constchar*GetTypeString()const{return"ship";}voidMarkDirty();voidUpdateDeltaXY(Directiondirection);ExpensesTypeGetExpenseType(boolincome)const{returnincome?EXPENSES_SHIP_INC:EXPENSES_SHIP_RUN;}WindowClassGetVehicleListWindowClass()const{returnWC_SHIPS_LIST;}voidPlayLeaveStationSound()const;boolIsPrimaryVehicle()const{returntrue;}intGetImage(Directiondirection)const;intGetDisplaySpeed()const{returnthis->cur_speed*10/32;}intGetDisplayMaxSpeed()const{returnthis->max_speed*10/32;}MoneyGetRunningCost()const{returnShipVehInfo(this->engine_type)->running_cost*_price.ship_running;}boolIsInDepot()const{returnthis->u.ship.state==0x80;}voidTick();voidOnNewDay();};#endif /* SHIP_H */