/*************************************************************************** kship.h ----------------- Developers: (c) 2000-2001 Nikolas Zimmermann (c) 2000-2001 Daniel Molkentin (c) 2001 Kevin Krammer ***************************************************************************/ /*************************************************************************** * * * 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