From: Oliver O. <fr...@us...> - 2007-03-07 10:39:27
|
Update of /cvsroot/simspark/simspark/simulations/soccer/plugin In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv24718 Added Files: Tag: projectx .cvsignore Makefile.am export.cpp soccertypes.h Log Message: soccer plugins from rcssserver3D --- NEW FILE: .cvsignore --- .deps .libs Makefile Makefile.in *.la *.lo --- NEW FILE: export.cpp --- /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- this file is part of rcssserver3D Fri May 9 2003 Copyright (C) 2002,2003 Koblenz University Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group $Id: export.cpp,v 1.1.2.1 2007/03/07 10:39:17 fruit 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; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <zeitgeist/zeitgeist.h> #include "beameffector/beameffector.h" #include "catcheffector/catcheffector.h" #include "createeffector/createeffector.h" #include "driveeffector/driveeffector.h" #include "initeffector/initeffector.h" #include "kickeffector/kickeffector.h" #include "pantilteffector/pantilteffector.h" #include "sayeffector/sayeffector.h" #include "soccercontrolaspect/soccercontrolaspect.h" #include "gamestateaspect/gamestateaspect.h" #include "gamestateaspect/gamestateitem.h" #include "ballstateaspect/ballstateaspect.h" #include "soccerruleaspect/soccerruleaspect.h" #include "agentstate/agentstate.h" #include "sexpmonitor/sexpmonitor.h" #include "trainercommandparser/trainercommandparser.h" #include "fieldflag/fieldflag.h" #include "ball/ball.h" #include "visionperceptor/visionperceptor.h" #include "restrictedvisionperceptor/restrictedvisionperceptor.h" #include "gamestateperceptor/gamestateperceptor.h" #include "agentstateperceptor/agentstateperceptor.h" #include "hearperceptor/hearperceptor.h" ZEITGEIST_EXPORT_BEGIN() ZEITGEIST_EXPORT(SoccerControlAspect); ZEITGEIST_EXPORT(GameStateAspect); ZEITGEIST_EXPORT(GameStateItem); ZEITGEIST_EXPORT(BallStateAspect); ZEITGEIST_EXPORT(SoccerRuleAspect); ZEITGEIST_EXPORT(BeamEffector); ZEITGEIST_EXPORT(CatchEffector); ZEITGEIST_EXPORT(CreateEffector); ZEITGEIST_EXPORT(DriveEffector); ZEITGEIST_EXPORT(InitEffector); ZEITGEIST_EXPORT(KickEffector); ZEITGEIST_EXPORT(PanTiltEffector); ZEITGEIST_EXPORT(SayEffector); ZEITGEIST_EXPORT(ObjectState); ZEITGEIST_EXPORT(AgentState); ZEITGEIST_EXPORT(TrainerCommandParser); ZEITGEIST_EXPORT(SexpMonitor); ZEITGEIST_EXPORT(FieldFlag); ZEITGEIST_EXPORT(Ball); ZEITGEIST_EXPORT(AgentStatePerceptor); ZEITGEIST_EXPORT(GameStatePerceptor); ZEITGEIST_EXPORT(HearPerceptor); ZEITGEIST_EXPORT(RestrictedVisionPerceptor); ZEITGEIST_EXPORT(VisionPerceptor); ZEITGEIST_EXPORT_END() --- NEW FILE: soccertypes.h --- /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- this file is part of rcssserver3D Fri May 9 2003 Copyright (C) 2002,2003 Koblenz University Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group $Id: soccertypes.h,v 1.1.2.1 2007/03/07 10:39:17 fruit 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; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef SOCCERTYPES_H #define SOCCERTYPES_H /** this file contains types common to all plugins in the soccer simulation */ #include <string> enum TPlayMode { // the order of the first 3 play modes should not be changed. PM_BeforeKickOff = 0, /*!< before_kick_off: before the match */ PM_KickOff_Left = 1, /*!< kick_off_left: kick off for the left team */ PM_KickOff_Right = 2, /*!< kick_off_right: kick off for the right team */ PM_PlayOn, /*!< play_on: regular game play */ PM_KickIn_Left, PM_KickIn_Right, PM_CORNER_KICK_LEFT, /*!< corner_kick_l: corner kick left team */ PM_CORNER_KICK_RIGHT, /*!< corner_kick_r: corner kick right team */ PM_GOAL_KICK_LEFT, /*!< goal_kick_l: goal kick for left team */ PM_GOAL_KICK_RIGHT, /*!< goal_kick_r: goal kick for right team*/ PM_OFFSIDE_LEFT, /*!< offside_l: offside for left team */ PM_OFFSIDE_RIGHT, /*!< offside_r: offside for right team */ PM_GameOver, PM_Goal_Left, PM_Goal_Right, PM_FREE_KICK_LEFT, /*!< free_kick_l: free kick for left team */ PM_FREE_KICK_RIGHT, /*!< free_kick_r: free kick for right team*/ PM_NONE /*!< no play mode, this must be the last entry */ }; /** mapping from TPlayMode to string constants */ #define STR_PM_BeforeKickOff "BeforeKickOff" #define STR_PM_KickOff_Left "KickOff_Left" #define STR_PM_KickOff_Right "KickOff_Right" #define STR_PM_PlayOn "PlayOn" #define STR_PM_KickIn_Left "KickIn_Left" #define STR_PM_KickIn_Right "KickIn_Right" #define STR_PM_CORNER_KICK_LEFT "corner_kick_left" #define STR_PM_CORNER_KICK_RIGHT "corner_kick_right" #define STR_PM_GOAL_KICK_LEFT "goal_kick_left" #define STR_PM_GOAL_KICK_RIGHT "goal_kick_right" #define STR_PM_OFFSIDE_LEFT "offside_left" #define STR_PM_OFFSIDE_RIGHT "offside_right" #define STR_PM_GameOver "GameOver" #define STR_PM_Goal_Left "Goal_Left" #define STR_PM_Goal_Right "Goal_Right" #define STR_PM_FREE_KICK_LEFT "free_kick_left" #define STR_PM_FREE_KICK_RIGHT "free_kick_right" #define STR_PM_Unknown "unknown" enum TTeamIndex { TI_NONE = 0, TI_LEFT = 1, TI_RIGHT = 2 }; typedef float TTime; enum TGameHalf { GH_NONE = 0, GH_FIRST = 1, GH_SECOND = 2 }; #endif // SOCCERTYPES_H --- NEW FILE: Makefile.am --- pkglib_LTLIBRARIES = soccer.la soccer_la_SOURCES = export.cpp \ agentstate/agentstate.cpp \ agentstate/agentstate_c.cpp \ agentstateperceptor/agentstateperceptor.cpp \ agentstateperceptor/agentstateperceptor_c.cpp \ ball/ball.cpp ball/ball_c.cpp \ ballstateaspect/ballstateaspect.cpp \ ballstateaspect/ballstateaspect_c.cpp \ beameffector/beameffector.cpp \ beameffector/beameffector_c.cpp \ catcheffector/catcheffector.cpp \ catcheffector/catcheffector_c.cpp \ createeffector/createeffector.cpp \ createeffector/createeffector_c.cpp \ driveeffector/driveeffector.cpp \ driveeffector/driveeffector_c.cpp \ fieldflag/fieldflag_c.cpp \ gamestateaspect/gamestateaspect.cpp \ gamestateaspect/gamestateaspect_c.cpp \ gamestateaspect/gamestateitem.cpp \ gamestateaspect/gamestateitem_c.cpp \ gamestateperceptor/gamestateperceptor.cpp \ gamestateperceptor/gamestateperceptor_c.cpp \ hearperceptor/hearperceptor.cpp \ hearperceptor/hearperceptor_c.cpp \ initeffector/initeffector.cpp \ initeffector/initeffector_c.cpp \ kickeffector/kickeffector.cpp \ kickeffector/kickeffector_c.cpp \ objectstate/objectstate.cpp \ objectstate/objectstate_c.cpp \ pantilteffector/pantilteffector.cpp \ pantilteffector/pantilteffector_c.cpp \ restrictedvisionperceptor/restrictedvisionperceptor.cpp \ restrictedvisionperceptor/restrictedvisionperceptor_c.cpp \ sayeffector/sayeffector.cpp \ sayeffector/sayeffector_c.cpp \ sexpmonitor/sexpmonitor.cpp \ sexpmonitor/sexpmonitor_c.cpp \ soccerbase/soccerbase.cpp \ soccercontrolaspect/soccercontrolaspect.cpp \ soccercontrolaspect/soccercontrolaspect_c.cpp \ soccerruleaspect/soccerruleaspect.cpp \ soccerruleaspect/soccerruleaspect_c.cpp \ trainercommandparser/trainercommandparser.cpp \ trainercommandparser/trainercommandparser_c.cpp \ visionperceptor/visionperceptor.cpp \ visionperceptor/visionperceptor_c.cpp nobase_libpkginclude_HEADERS = \ soccertypes.h \ agentstate/agentstate.h \ agentstateperceptor/agentstateperceptor.h \ ball/ball.h \ ballstateaspect/ballstateaspect.h \ beameffector/beamaction.h \ beameffector/beameffector.h \ catcheffector/catchaction.h \ catcheffector/catcheffector.h \ createeffector/createaction.h \ createeffector/createeffector.h \ driveeffector/driveaction.h \ driveeffector/driveeffector.h \ fieldflag/fieldflag.h \ gamestateaspect/gamestateaspect.h \ gamestateaspect/gamestateitem.h \ gamestateperceptor/gamestateperceptor.h \ hearperceptor/hearperceptor.h \ initeffector/initaction.h \ initeffector/initeffector.h \ kickeffector/kickaction.h \ kickeffector/kickeffector.h \ objectstate/objectstate.h \ pantilteffector/pantiltaction.h \ pantilteffector/pantilteffector.h \ restrictedvisionperceptor/restrictedvisionperceptor.h \ sayeffector/sayaction.h \ sayeffector/sayeffector.h \ sexpmonitor/sexpmonitor.h \ soccerbase/soccerbase.h \ soccercontrolaspect/soccercontrolaspect.h \ soccerruleaspect/soccerruleaspect.h \ trainercommandparser/trainercommandparser.h \ visionperceptor/visionperceptor.h ## define include directory local to the pkgincludedir libpkgincludedir = $(includedir)/@PACKAGE@/soccer # -module tells automake we're not building a library but a loadable module # so we don't need the "lib" prefix in the module name soccer_la_LDFLAGS = -module -version-info 1:0:0 AM_CPPFLAGS = -I${top_srcdir}/lib @RUBY_CPPFLAGS@ -I${top_srcdir}/plugin |