author | glx |
Mon, 24 Sep 2007 03:08:47 +0000 | |
branch | 0.5 |
changeset 5545 | f42dc59a45f5 |
parent 4725 | f7284b86833f |
permissions | -rw-r--r-- |
3962 | 1 |
/* $Id$ */ |
2 |
||
4666
850b5b6e4bac
(svn r6560) - Codechange: Minor fix; add missing #include guards and comments, and correct svn properties on bmp.[ch]
peter1138
parents:
4638
diff
changeset
|
3 |
#ifndef SHIP_H |
850b5b6e4bac
(svn r6560) - Codechange: Minor fix; add missing #include guards and comments, and correct svn properties on bmp.[ch]
peter1138
parents:
4638
diff
changeset
|
4 |
#define SHIP_H |
850b5b6e4bac
(svn r6560) - Codechange: Minor fix; add missing #include guards and comments, and correct svn properties on bmp.[ch]
peter1138
parents:
4638
diff
changeset
|
5 |
|
3962 | 6 |
#include "vehicle.h" |
7 |
||
4638
8abe4f10b94b
(svn r6513) -Codechange: unified the code to draw depot windows
bjarni
parents:
3962
diff
changeset
|
8 |
void CcCloneShip(bool success, TileIndex tile, uint32 p1, uint32 p2); |
4725
f7284b86833f
(svn r6637) -Codechange: merged all (vehicle type)EnterDepot into VehicleEnterDepot()
bjarni
parents:
4666
diff
changeset
|
9 |
void RecalcShipStuff(Vehicle *v); |
3962 | 10 |
|
11 |
static inline bool IsShipInDepot(const Vehicle* v) |
|
12 |
{ |
|
13 |
assert(v->type == VEH_Ship); |
|
14 |
return v->u.ship.state == 0x80; |
|
15 |
} |
|
16 |
||
17 |
static inline bool IsShipInDepotStopped(const Vehicle* v) |
|
18 |
{ |
|
19 |
return IsShipInDepot(v) && v->vehstatus & VS_STOPPED; |
|
20 |
} |
|
4666
850b5b6e4bac
(svn r6560) - Codechange: Minor fix; add missing #include guards and comments, and correct svn properties on bmp.[ch]
peter1138
parents:
4638
diff
changeset
|
21 |
|
850b5b6e4bac
(svn r6560) - Codechange: Minor fix; add missing #include guards and comments, and correct svn properties on bmp.[ch]
peter1138
parents:
4638
diff
changeset
|
22 |
#endif /* SHIP_H */ |