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

gamecontrolserver_c.cpp

Go to the documentation of this file.
00001 /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*-
00002    this file is part of rcssserver3D
00003    Fri May 9 2003
00004    Copyright (C) 2002,2003 Koblenz University
00005    Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group
00006    $Id: gamecontrolserver_c.cpp,v 1.5 2004/03/22 10:49:39 rollmark Exp $
00007 
00008    This program is free software; you can redistribute it and/or modify
00009    it under the terms of the GNU General Public License as published by
00010    the Free Software Foundation; version 2 of the License.
00011 
00012    This program is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015    GNU General Public License for more details.
00016 
00017    You should have received a copy of the GNU General Public License
00018    along with this program; if not, write to the Free Software
00019    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00020 */
00021 
00022 #include "gamecontrolserver.h"
00023 
00024 using namespace oxygen;
00025 using namespace std;
00026 
00027 FUNCTION(GameControlServer,initParser)
00028 {
00029     string inParserName;
00030 
00031     return(
00032            (in.GetSize() == 1) &&
00033            (in.GetValue(in.begin(),inParserName)) &&
00034            (obj->InitParser(inParserName))
00035            );
00036 }
00037 
00038 FUNCTION(GameControlServer,initEffector)
00039 {
00040     string inEffectorName;
00041 
00042     if (
00043         (in.GetSize() != 1) ||
00044         (! in.GetValue(in.begin(),inEffectorName))
00045         )
00046         {
00047             return false;
00048         }
00049 
00050     obj->InitEffector(inEffectorName);
00051     return true;
00052 }
00053 
00054 FUNCTION(GameControlServer,initControlAspect)
00055 {
00056     string inAspectName;
00057 
00058     return(
00059            (in.GetSize() == 1) &&
00060            (in.GetValue(in.begin(),inAspectName)) &&
00061            (obj->InitControlAspect(inAspectName))
00062            );
00063 }
00064 
00065 void CLASS(GameControlServer)::DefineClass()
00066 {
00067     DEFINE_BASECLASS(zeitgeist/Node);
00068     DEFINE_FUNCTION(initParser);
00069     DEFINE_FUNCTION(initEffector);
00070     DEFINE_FUNCTION(initControlAspect);
00071 }

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