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

hearperceptor.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) 2004 RoboCup Soccer Server 3D Maintenance Group
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 #ifndef HEARPERCEPTOR_H
00022 #define HEARPERCEPTOR_H
00023 
00024 #include <oxygen/agentaspect/perceptor.h>
00025 
00026 class AgentState;
00027 class GameStateAspect;
00028 
00029 namespace oxygen
00030 {
00031     class Predicate;
00032 }
00033 
00034 class HearPerceptor : public oxygen::Perceptor
00035 {
00036 public:
00037     HearPerceptor();
00038     virtual ~HearPerceptor();
00039 
00041     virtual bool Percept(boost::shared_ptr<oxygen::PredicateList> predList);
00042 
00043 protected:
00045     virtual void OnLink();
00046 
00048     virtual void OnUnlink();
00049 
00050 protected:
00052     boost::shared_ptr<AgentState> mAgentState;
00053     
00055     boost::shared_ptr<GameStateAspect> mGameState;
00056 };
00057 
00058 DECLARE_CLASS(HearPerceptor);
00059 
00060 #endif // HEARPERCEPTOR_H

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