[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Eliot-dev] Changes to eliot/game/tile.h [antoine-1]
From: |
eliot-dev |
Subject: |
[Eliot-dev] Changes to eliot/game/tile.h [antoine-1] |
Date: |
Sun, 23 Oct 2005 16:59:17 -0400 |
Index: eliot/game/tile.h
diff -u eliot/game/tile.h:1.5.2.1 eliot/game/tile.h:1.5.2.2
--- eliot/game/tile.h:1.5.2.1 Sun Oct 23 17:16:24 2005
+++ eliot/game/tile.h Sun Oct 23 20:58:20 2005
@@ -2,8 +2,6 @@
* Copyright (C) 2005 Eliot
* Authors: Olivier Teuliere <address@hidden>
*
- * $Id: tile.h,v 1.5.2.1 2005/10/23 17:16:24 afrab Exp $
- *
* 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
@@ -38,10 +36,10 @@
// - this permits to detect joker in already played games
// - we need to pay attention when inserting character taken
// from user input
-
+
Tile(char c = 0);
virtual ~Tile() {}
-
+
bool isEmpty() const { return m_dummy; }
bool isJoker() const { return m_joker; }
bool isVowel() const;
@@ -52,24 +50,24 @@
char toChar() const;
int toCode() const;
-
+
static const Tile& dummy() { return m_TheDummy; }
static const Tile& Joker() { return m_TheJoker; }
static const std::list<Tile>& getAllTiles();
-
+
bool operator <(const Tile &iOther) const;
bool operator ==(const Tile &iOther) const;
bool operator !=(const Tile &iOther) const;
-
+
private:
char m_char;
bool m_joker;
bool m_dummy;
-
+
// Special tiles are declared static
static const Tile m_TheJoker;
static const Tile m_TheDummy;
-
+
// List of available tiles
static std::list<Tile> m_tilesList;
};