Move commands to the game/cmd/ sub-directory.

The abstract Command class (from which all the others inherit)
is still game/, to hide the cmd/ subdir from most clients.
This commit is contained in:
Olivier Teulière 2012-12-05 20:26:47 +01:00
parent bea6a41cd4
commit e34cc25fe1
20 changed files with 46 additions and 43 deletions

View file

@ -5,7 +5,9 @@ dnl configure.in for Eliot
dnl --------------------------------------------------------------
AC_INIT(eliot, 2.1-git)
AC_CONFIG_SRCDIR(qt/main.cpp)
AM_INIT_AUTOMAKE
dnl See http://www.flameeyes.eu/autotools-mythbuster/automake/nonrecursive.html
dnl for the subdir-objets arguments (used at the moment for game/cmd/)
AM_INIT_AUTOMAKE([subdir-objects])
AM_CONFIG_HEADER(config.h)
AC_CANONICAL_HOST
AC_CANONICAL_BUILD

View file

@ -35,9 +35,9 @@ libgame_a_SOURCES= \
turn_data.cpp turn_data.h \
history.cpp history.h \
player.cpp player.h \
player_event_cmd.cpp player_event_cmd.h \
player_move_cmd.cpp player_move_cmd.h \
player_rack_cmd.cpp player_rack_cmd.h \
cmd/player_event_cmd.cpp cmd/player_event_cmd.h \
cmd/player_move_cmd.cpp cmd/player_move_cmd.h \
cmd/player_rack_cmd.cpp cmd/player_rack_cmd.h \
ai_player.h \
ai_percent.cpp ai_percent.h \
game_params.h \
@ -48,12 +48,12 @@ libgame_a_SOURCES= \
settings.cpp settings.h \
navigation.cpp navigation.h \
game.cpp game.h \
game_move_cmd.h game_move_cmd.cpp \
game_rack_cmd.h game_rack_cmd.cpp \
cmd/game_move_cmd.h cmd/game_move_cmd.cpp \
cmd/game_rack_cmd.h cmd/game_rack_cmd.cpp \
cmd/master_move_cmd.h cmd/master_move_cmd.cpp \
turn.cpp turn.h \
duplicate.cpp duplicate.h \
arbitration.cpp arbitration.h \
master_move_cmd.h master_move_cmd.cpp \
freegame.cpp freegame.h \
training.cpp training.h \
public_game.cpp public_game.h \

View file

@ -26,10 +26,10 @@
#include "rack.h"
#include "player.h"
#include "turn.h"
#include "game_rack_cmd.h"
#include "results.h"
#include "player_move_cmd.h"
#include "player_event_cmd.h"
#include "cmd/game_rack_cmd.h"
#include "cmd/player_move_cmd.h"
#include "cmd/player_event_cmd.h"
#include "settings.h"
#include "encoding.h"
#include "debug.h"

View file

@ -20,7 +20,7 @@
#include <sstream>
#include "game_move_cmd.h"
#include "cmd/game_move_cmd.h"
#include "player.h"
#include "game_params.h"
#include "game.h"

View file

@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*****************************************************************************/
#include "game_rack_cmd.h"
#include "cmd/game_rack_cmd.h"
#include "game.h"

View file

@ -19,7 +19,8 @@
*****************************************************************************/
#include <sstream>
#include "master_move_cmd.h"
#include "cmd/master_move_cmd.h"
#include "duplicate.h"
using namespace std;

View file

@ -20,7 +20,7 @@
#include <sstream>
#include "player_event_cmd.h"
#include "cmd/player_event_cmd.h"
#include "player.h"
#include "debug.h"

View file

@ -20,7 +20,7 @@
#include <sstream>
#include "player_move_cmd.h"
#include "cmd/player_move_cmd.h"
#include "player.h"

View file

@ -20,7 +20,7 @@
#include <sstream>
#include "player_rack_cmd.h"
#include "cmd/player_rack_cmd.h"
#include "player.h"

View file

@ -39,12 +39,12 @@
#include "pldrack.h"
#include "results.h"
#include "player.h"
#include "player_move_cmd.h"
#include "player_rack_cmd.h"
#include "player_event_cmd.h"
#include "game_move_cmd.h"
#include "game_rack_cmd.h"
#include "master_move_cmd.h"
#include "cmd/player_move_cmd.h"
#include "cmd/player_rack_cmd.h"
#include "cmd/player_event_cmd.h"
#include "cmd/game_move_cmd.h"
#include "cmd/game_rack_cmd.h"
#include "cmd/master_move_cmd.h"
#include "ai_player.h"
#include "navigation.h"
#include "turn.h"

View file

@ -33,11 +33,11 @@
#include "pldrack.h"
#include "results.h"
#include "player.h"
#include "player_event_cmd.h"
#include "player_move_cmd.h"
#include "player_rack_cmd.h"
#include "game_move_cmd.h"
#include "game_rack_cmd.h"
#include "cmd/player_event_cmd.h"
#include "cmd/player_move_cmd.h"
#include "cmd/player_rack_cmd.h"
#include "cmd/game_move_cmd.h"
#include "cmd/game_rack_cmd.h"
#include "ai_player.h"
#include "settings.h"
#include "turn_data.h"

View file

@ -39,10 +39,10 @@
#include "move.h"
#include "pldrack.h"
#include "player.h"
#include "player_move_cmd.h"
#include "player_rack_cmd.h"
#include "game_move_cmd.h"
#include "game_rack_cmd.h"
#include "cmd/player_move_cmd.h"
#include "cmd/player_rack_cmd.h"
#include "cmd/game_move_cmd.h"
#include "cmd/game_rack_cmd.h"
#include "encoding.h"
#include "debug.h"

View file

@ -53,12 +53,12 @@
#include "player.h"
#include "ai_percent.h"
#include "encoding.h"
#include "game_rack_cmd.h"
#include "game_move_cmd.h"
#include "player_rack_cmd.h"
#include "player_move_cmd.h"
#include "player_event_cmd.h"
#include "master_move_cmd.h"
#include "cmd/game_rack_cmd.h"
#include "cmd/game_move_cmd.h"
#include "cmd/player_rack_cmd.h"
#include "cmd/player_move_cmd.h"
#include "cmd/player_event_cmd.h"
#include "cmd/master_move_cmd.h"
#include "navigation.h"
#include "header.h"

View file

@ -42,12 +42,12 @@
#include "ai_percent.h"
#include "game_exception.h"
#include "turn.h"
#include "game_rack_cmd.h"
#include "game_move_cmd.h"
#include "player_rack_cmd.h"
#include "player_move_cmd.h"
#include "player_event_cmd.h"
#include "master_move_cmd.h"
#include "cmd/game_rack_cmd.h"
#include "cmd/game_move_cmd.h"
#include "cmd/player_rack_cmd.h"
#include "cmd/player_move_cmd.h"
#include "cmd/player_event_cmd.h"
#include "cmd/master_move_cmd.h"
#include "dic.h"
#include "header.h"