blob: 6d60ac62c53a9ba709686b7a37b9a34ac83ecbcf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/***************************************************************************
kship.h
-----------------
Developers: (c) 2000-2001 Nikolas Zimmermann <wildfox@kde.org>
(c) 2000-2001 Daniel Molkentin <molkentin@kde.org>
(c) 2001 Kevin Krammer <kevin.krammer@gmx.at>
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef KSHIP_H
#define KSHIP_H
class KShip
{
public:
KShip(int, int, int, int, int, bool = false);
int shipxstart();
int shipxstop();
int shipystart();
int shipystop();
int shiptype();
int shipTypeEnum(int x, int y);
bool placedLeft();
bool tqcontains(int x, int y);
private:
int m_shipxstart;
int m_shipxstop;
int m_shipystart;
int m_shipystop;
int m_shiptype;
bool m_placedLeft;
};
#endif
|