You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdegames/kbattleship/kbattleship/kship.h

47 lines
1.4 KiB

/***************************************************************************
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