[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Eliot-dev] Changes to eliot/game/game.cpp
From: |
eliot-dev |
Subject: |
[Eliot-dev] Changes to eliot/game/game.cpp |
Date: |
Sat, 05 Nov 2005 06:02:01 -0500 |
Index: eliot/game/game.cpp
diff -u eliot/game/game.cpp:1.17 eliot/game/game.cpp:1.18
--- eliot/game/game.cpp:1.17 Fri Nov 4 23:26:03 2005
+++ eliot/game/game.cpp Sat Nov 5 11:01:58 2005
@@ -216,7 +216,7 @@
if (isalpha(ref[0]))
{
// Horizontal word
- round.setDir(HORIZONTAL);
+ round.setDir(Coord::HORIZONTAL);
round.setRow(ref[0] - 'A' + 1);
round.setCol(atoi(ref + 1));
@@ -238,7 +238,7 @@
else
{
// Vertical word
- round.setDir(VERTICAL);
+ round.setDir(Coord::VERTICAL);
round.setRow(ref[strlen(ref) - 1] - 'A' + 1);
round.setCol(atoi(ref));
@@ -717,7 +717,7 @@
string Game::formatCoords(const Round &iRound) const
{
- if (iRound.getDir() == HORIZONTAL)
+ if (iRound.getDir() == Coord::HORIZONTAL)
{
char s[5];
sprintf(s, "%d", iRound.getCol());
@@ -897,9 +897,9 @@
/* Init the round with the given coordinates */
oRound.init();
if (sscanf(iCoord.c_str(), "%1[a-oA-O]%2d", l, &col) == 2)
- oRound.setDir(HORIZONTAL);
+ oRound.setDir(Coord::HORIZONTAL);
else if (sscanf(iCoord.c_str(), "%2d%1[a-oA-O]", &col, l) == 2)
- oRound.setDir(VERTICAL);
+ oRound.setDir(Coord::VERTICAL);
else
return 2;
row = toupper(*l) - 'A' + 1;
- [Eliot-dev] Changes to eliot/game/game.cpp, eliot-dev, 2005/11/04
- [Eliot-dev] Changes to eliot/game/game.cpp, eliot-dev, 2005/11/04
- [Eliot-dev] Changes to eliot/game/game.cpp,
eliot-dev <=
- [Eliot-dev] Changes to eliot/game/game.cpp, eliot-dev, 2005/11/05
- [Eliot-dev] Changes to eliot/game/game.cpp, eliot-dev, 2005/11/05
- [Eliot-dev] Changes to eliot/game/game.cpp, eliot-dev, 2005/11/05
- [Eliot-dev] Changes to eliot/game/game.cpp, eliot-dev, 2005/11/05
- [Eliot-dev] Changes to eliot/game/game.cpp, eliot-dev, 2005/11/06