00001 /** 00002 * @file KickSelectionSymbols.h 00003 * 00004 * Declaration of class KickSelectionSymbols. 00005 * 00006 * @author Martin Lötzsch 00007 */ 00008 00009 #ifndef __KickSelectionSymbols_h_ 00010 #define __KickSelectionSymbols_h_ 00011 00012 #include "../BehaviorControl.h" 00013 #include "Tools/Xabsl2/Xabsl2Engine/Xabsl2Engine.h" 00014 #include "Tools/KickSelectionTable.h" 00015 00016 /** 00017 * The Xabsl2 symbols that are defined in "kick-selection-symbols.xml" 00018 * 00019 * @author Martin Lötzsch 00020 */ 00021 class KickSelectionSymbols : public Xabsl2FunctionProvider, public BehaviorControlInterfaces 00022 { 00023 public: 00024 /* 00025 * Constructor. 00026 * @param interfaces The paramters of the BehaviorControl module. 00027 * @param fileName The file name of the kick selection table to load 00028 */ 00029 KickSelectionSymbols(BehaviorControlInterfaces& interfaces, const char* fileName); 00030 00031 /** registers the symbols at an engine */ 00032 void registerSymbols(Xabsl2Engine& engine); 00033 00034 /** A function for the function "retrieve-kick" */ 00035 double retrieveKick(); 00036 00037 /** 00038 * Is called for every incoming debug message. 00039 * @param message An interface to read the message from the queue 00040 * @return if the messag was read 00041 */ 00042 bool handleMessage(InMessage& message); 00043 00044 protected: 00045 /** The function parameter "retrieve-kick.angle" */ 00046 double angle; 00047 00048 /** The function parameter "retrieve-kick.table-id" */ 00049 double tableID; 00050 00051 /** The kick selection table that is used */ 00052 KickSelectionTable kickSelectionTable; 00053 }; 00054 00055 00056 #endif // __KickSelectionSymbols_h_ 00057 00058 /* 00059 * Change Log 00060 * 00061 * $Log: KickSelectionSymbols.h,v $ 00062 * Revision 1.1 2004/05/22 21:31:04 loetzsch 00063 * adopted kick selection table to GT2004 00064 * 00065 * Revision 1.3 2004/03/17 20:24:03 juengel 00066 * handleMessage() is not virtual any more. 00067 * 00068 * Revision 1.2 2004/03/17 19:57:48 juengel 00069 * handleMessage() for kickSelectionSymbols added. 00070 * 00071 * Revision 1.1 2004/03/16 14:00:18 juengel 00072 * Integrated Improvments from "Günne" 00073 * -ATH2004ERS7Behavior 00074 * -ATHHeadControl 00075 * -KickSelectionTable 00076 * -KickEditor 00077 * 00078 * Revision 1.3 2004/03/10 18:40:59 loetzsch 00079 * first functioning version 00080 * 00081 * Revision 1.2 2004/03/09 18:48:47 loetzsch 00082 * kick selection table changes 00083 * 00084 * Revision 1.1 2004/03/09 13:44:49 loetzsch 00085 * added class ATH2004ERS7KickSelectionSymbols 00086 * 00087 */ 00088