summaryrefslogtreecommitdiffstats
path: root/kbattleship/kbattleship/kship.h
diff options
context:
space:
mode:
Diffstat (limited to 'kbattleship/kbattleship/kship.h')
-rw-r--r--kbattleship/kbattleship/kship.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/kbattleship/kbattleship/kship.h b/kbattleship/kbattleship/kship.h
new file mode 100644
index 00000000..df436c7a
--- /dev/null
+++ b/kbattleship/kbattleship/kship.h
@@ -0,0 +1,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 contains(int x, int y);
+
+private:
+ int m_shipxstart;
+ int m_shipxstop;
+ int m_shipystart;
+ int m_shipystop;
+ int m_shiptype;
+ bool m_placedLeft;
+};
+
+#endif