Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

soccertypes.h

Go to the documentation of this file.
00001 /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*-
00002 
00003    this file is part of rcssserver3D
00004    Fri May 9 2003
00005    Copyright (C) 2002,2003 Koblenz University
00006    Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group
00007    $Id: soccertypes.h,v 1.7 2004/06/08 12:56:10 fruit Exp $
00008 
00009    This program is free software; you can redistribute it and/or modify
00010    it under the terms of the GNU General Public License as published by
00011    the Free Software Foundation; version 2 of the License.
00012 
00013    This program is distributed in the hope that it will be useful,
00014    but WITHOUT ANY WARRANTY; without even the implied warranty of
00015    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016    GNU General Public License for more details.
00017 
00018    You should have received a copy of the GNU General Public License
00019    along with this program; if not, write to the Free Software
00020    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00021 */
00022 #ifndef SOCCERTYPES_H
00023 #define SOCCERTYPES_H
00024 
00029 #include <string>
00030 
00031 enum TPlayMode
00032 {
00033     // the order of the first 3 play modes should not be changed.
00034     PM_BeforeKickOff = 0,      
00035     PM_KickOff_Left = 1,       
00036     PM_KickOff_Right = 2,      
00037     PM_PlayOn,                 
00038     PM_KickIn_Left,
00039     PM_KickIn_Right,
00040     PM_CORNER_KICK_LEFT,       
00041     PM_CORNER_KICK_RIGHT,      
00042     PM_GOAL_KICK_LEFT,         
00043     PM_GOAL_KICK_RIGHT,        
00044     PM_OFFSIDE_LEFT,           
00045     PM_OFFSIDE_RIGHT,          
00046     PM_GameOver,
00047     PM_Goal_Left,
00048     PM_Goal_Right,
00049     PM_FREE_KICK_LEFT,         
00050     PM_FREE_KICK_RIGHT,        
00051     PM_NONE                    
00052 };
00053 
00055 #define STR_PM_BeforeKickOff "BeforeKickOff"
00056 #define STR_PM_KickOff_Left "KickOff_Left"
00057 #define STR_PM_KickOff_Right "KickOff_Right"
00058 #define STR_PM_PlayOn "PlayOn"
00059 #define STR_PM_KickIn_Left "KickIn_Left"
00060 #define STR_PM_KickIn_Right "KickIn_Right"
00061 #define STR_PM_CORNER_KICK_LEFT "corner_kick_left"
00062 #define STR_PM_CORNER_KICK_RIGHT "corner_kick_right"
00063 #define STR_PM_GOAL_KICK_LEFT "goal_kick_left"
00064 #define STR_PM_GOAL_KICK_RIGHT "goal_kick_right"
00065 #define STR_PM_OFFSIDE_LEFT "offside_left"
00066 #define STR_PM_OFFSIDE_RIGHT "offside_right"
00067 #define STR_PM_GameOver "GameOver"
00068 #define STR_PM_Goal_Left "Goal_Left"
00069 #define STR_PM_Goal_Right "Goal_Right"
00070 #define STR_PM_FREE_KICK_LEFT "free_kick_left"
00071 #define STR_PM_FREE_KICK_RIGHT "free_kick_right"
00072 #define STR_PM_Unknown "unknown"
00073 
00074 enum TTeamIndex
00075 {
00076     TI_NONE = 0,
00077     TI_LEFT = 1,
00078     TI_RIGHT = 2
00079 };
00080 
00081 typedef float TTime;
00082 
00083 enum TGameHalf
00084 {
00085     GH_NONE = 0,
00086     GH_FIRST = 1,
00087     GH_SECOND = 2
00088 };
00089 
00090 #endif // SOCCERTYPES_H

Generated on Thu Apr 6 15:25:40 2006 for rcssserver3d by  doxygen 1.4.4