Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Modules/BehaviorControl/CommonXabsl2Symbols/FieldSymbols.cpp

Go to the documentation of this file.
00001 /** 
00002 * @file FieldSymbols.cpp
00003 *
00004 * Implementation of class FieldSymbols.
00005 *
00006 * @author Patrick Stamm & Marcus Schobbe
00007 */
00008 
00009 #include "FieldSymbols.h"
00010 #include "Tools/FieldDimensions.h"
00011 #include "Tools/Debugging/DebugDrawings.h"
00012 
00013 FieldSymbols::FieldSymbols(const BehaviorControlInterfaces& interfaces)
00014 : BehaviorControlInterfaces(interfaces), 
00015 xPosOwnGroundline(::xPosOwnGroundline), 
00016 xPosOpponentGroundline(::xPosOpponentGroundline), 
00017 xPosOwnGoal(::xPosOwnGoal),
00018 xPosOpponentGoal(::xPosOpponentGoal),
00019 xPosOwnPenaltyArea(::xPosOwnPenaltyArea),
00020 xPosOpponentPenaltyArea(::xPosOpponentPenaltyArea),
00021 yPosLeftGoal(::yPosLeftGoal),
00022 yPosRightGoal(::yPosRightGoal),
00023 yPosLeftSideline(::yPosLeftSideline),
00024 yPosRightSideline(::yPosRightSideline),
00025 yPosLeftPenaltyArea(::yPosLeftPenaltyArea),
00026 yPosRightPenaltyArea(::yPosRightPenaltyArea),
00027 xPosThrowInPointOpponentHalf(::xPosThrowInPointOpponentHalf),
00028 xPosThrowInPointCenter(::xPosThrowInPointCenter),
00029 xPosThrowInPointOwnHalf(::xPosThrowInPointOwnHalf),
00030 yPosThrowInPointLeft(::yPosThrowInPointLeft),
00031 yPosThrowInPointRight(::yPosThrowInPointRight)
00032 {
00033 }
00034 
00035 void FieldSymbols::registerSymbols(Xabsl2Engine& engine)
00036 {
00037   engine.registerDecimalInputSymbol("field.opponent-groundline.x",&xPosOpponentGroundline);
00038   engine.registerDecimalInputSymbol("field.own-groundline.x",&xPosOwnGroundline);
00039   engine.registerDecimalInputSymbol("field.own-penalty-area.x",&xPosOwnPenaltyArea);
00040   engine.registerDecimalInputSymbol("field.opponent-penalty-area.x",&xPosOpponentPenaltyArea);
00041   engine.registerDecimalInputSymbol("field.own-goal.x",&xPosOwnGoal);
00042   engine.registerDecimalInputSymbol("field.opponent-goal.x",&xPosOpponentGoal);
00043   engine.registerDecimalInputSymbol("field.left-sideline.y",&yPosLeftSideline);
00044   engine.registerDecimalInputSymbol("field.right-sideline.y",&yPosRightSideline);
00045   engine.registerDecimalInputSymbol("field.left-goal.y",&yPosLeftGoal);
00046   engine.registerDecimalInputSymbol("field.right-goal.y",&yPosRightGoal);
00047   engine.registerDecimalInputSymbol("field.left-penalty-area.y",&yPosLeftPenaltyArea);
00048   engine.registerDecimalInputSymbol("field.right-penalty-area.y",&yPosRightPenaltyArea);
00049   engine.registerDecimalInputSymbol("field.left-throw-in-points.y",&yPosThrowInPointLeft);
00050   engine.registerDecimalInputSymbol("field.right-throw-in-points.y",&yPosThrowInPointRight);
00051   engine.registerDecimalInputSymbol("field.opponent-half-throw-in-points.x",&xPosThrowInPointOpponentHalf);
00052   engine.registerDecimalInputSymbol("field.own-half-throw-in-points.x",&xPosThrowInPointOwnHalf);
00053   engine.registerDecimalInputSymbol("field.center-line-throw-in-points.x",&xPosThrowInPointCenter);
00054 }

Generated on Mon Mar 20 21:59:41 2006 for GT2005 by doxygen 1.3.6