Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

Spot.h

00001 /*
00002  * Spot.h -- class interface for Spot skill
00003  * Copyright (C) 2002  Eric Lemings <elemings@users.sourceforge.net>
00004  *
00005  * This software is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  *
00010  * This software is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this software; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00018  * 02111-1307, USA
00019  *
00020  * RCS: $Id: Spot.h,v 1.5 2003/04/15 16:58:49 elemings Exp $
00021  */
00022 
00023 #ifdef __cplusplus
00024 
00025 #  ifndef OGS_SKILLS_SPOT_H
00026 #    define OGS_SKILLS_SPOT_H
00027 
00028 #    include <ogs/core/Modifier.h>
00029 #    include <ogs/core/Skill.h>
00030 #    include <ogs/skills/CommonSkills.h>
00031 #    include <ogs/skills/Namespace.h>
00032 
00033 OGS_BEGIN_SKILLS_NAMESPACE
00034 
00038 class Spot: public ogs::core::Skill {
00039   public:
00040     Spot (Points cclassPoints = 0, float distance = 0.0,
00041           bool distracted = false);
00042 
00043     float getDistance () const;
00044     void setDistance (float distance);
00045     bool isDistracted () const;
00046     void setDistracted (bool distracted = true);
00047 
00048   private:
00049     float _distance;
00050     ogs::core::Modifier _distanceModifier;
00051     bool _distracted;
00052     static ogs::core::Modifier _distractedModifier;
00053 };
00054 
00060 inline float Spot::getDistance () const {
00061   return (this->_distance);
00062 }
00063 
00069 inline bool Spot::isDistracted () const {
00070   return (this->_distracted);
00071 }
00072 
00073 OGS_END_SKILLS_NAMESPACE
00074 
00075 #  endif /* !defined OGS_SKILLS_SPOT_H */
00076 
00077 #endif /* defined __cplusplus */
00078 

Generated on Sun Apr 20 03:36:26 2003 for Open Gaming System (OGS) by doxygen1.3