author | rubidium |
Thu, 01 Feb 2007 15:49:12 +0000 | |
changeset 5893 | 7e431a4abebb |
parent 5783 | e207986ffe71 |
child 5972 | 59953719a3ff |
permissions | -rw-r--r-- |
3962 | 1 |
/* $Id$ */ |
2 |
||
4666
172a0cdf28a6
(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 |
172a0cdf28a6
(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 |
172a0cdf28a6
(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 |
||
5783
e207986ffe71
(svn r8335) -Feature: the build ship window is now also resizable horizontally and contains sorting options
bjarni
parents:
5475
diff
changeset
|
8 |
void CcBuildShip(bool success, TileIndex tile, uint32 p1, uint32 p2); |
4638
05955c6cb536
(svn r6513) -Codechange: unified the code to draw depot windows
bjarni
parents:
3962
diff
changeset
|
9 |
void CcCloneShip(bool success, TileIndex tile, uint32 p1, uint32 p2); |
4725
40cccaaa042c
(svn r6637) -Codechange: merged all (vehicle type)EnterDepot into VehicleEnterDepot()
bjarni
parents:
4666
diff
changeset
|
10 |
void RecalcShipStuff(Vehicle *v); |
3962 | 11 |
|
12 |
static inline bool IsShipInDepot(const Vehicle* v) |
|
13 |
{ |
|
14 |
assert(v->type == VEH_Ship); |
|
15 |
return v->u.ship.state == 0x80; |
|
16 |
} |
|
17 |
||
18 |
static inline bool IsShipInDepotStopped(const Vehicle* v) |
|
19 |
{ |
|
20 |
return IsShipInDepot(v) && v->vehstatus & VS_STOPPED; |
|
21 |
} |
|
4666
172a0cdf28a6
(svn r6560) - Codechange: Minor fix; add missing #include guards and comments, and correct svn properties on bmp.[ch]
peter1138
parents:
4638
diff
changeset
|
22 |
|
172a0cdf28a6
(svn r6560) - Codechange: Minor fix; add missing #include guards and comments, and correct svn properties on bmp.[ch]
peter1138
parents:
4638
diff
changeset
|
23 |
#endif /* SHIP_H */ |