Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Kodu::KoduConditionSee Class Reference

#include <KoduConditionSee.h>

Inheritance diagram for Kodu::KoduConditionSee:

Detailed Description

Definition at line 17 of file KoduConditionSee.h.

List of all members.

Public Member Functions

 KoduConditionSee (bool useNot, const std::string &kObjectType, const std::string &kObjectColor, SearchLocation_t locationToSearch)
 Constructor.
 KoduConditionSee (const KoduConditionSee &kCondition)
 Copy constructor.
 ~KoduConditionSee ()
 Destructor.
KoduConditionSeeoperator= (const KoduConditionSee &kCondition)
 Assignment operator.
virtual bool evaluate (const KoduWorld &)
 Checks if a specified object was seen.
const std::string & getObjectColor () const
 Returns a specified object's color.
const std::string & getObjectType () const
 Returns a specified object's type.
const DualCoding::ShapeRoot getTargetObject ()
 Returns the target object... if none is available, return an invalid object.
virtual void reinitialize ()
 Used to reinitialize certain variables (e.g. when switching to another page).
virtual void printAttrs () const
 Prints the attributes of a particular instance.

Static Public Member Functions

static bool isSameTypeAs (const KoduPrimitive *)
 Tests if the primitive argument is the same as the calling class.

Private Attributes

bool notModifierEnabled
std::string objType
std::string objColor
SearchLocation_t searchLocation
DualCoding::ShapeRoot refdObject

Constructor & Destructor Documentation

Kodu::KoduConditionSee::KoduConditionSee ( bool  useNot,
const std::string &  kObjectType,
const std::string &  kObjectColor,
SearchLocation_t  locationToSearch 
)

Constructor.

Definition at line 20 of file KoduConditionSee.h.

Kodu::KoduConditionSee::KoduConditionSee ( const KoduConditionSee kCondition  ) 

Copy constructor.

Definition at line 31 of file KoduConditionSee.h.

Kodu::KoduConditionSee::~KoduConditionSee (  ) 

Destructor.

Definition at line 41 of file KoduConditionSee.h.


Member Function Documentation

bool Kodu::KoduConditionSee::evaluate ( const KoduWorld kWorldState  )  [virtual]

Checks if a specified object was seen.

Implements Kodu::KoduCondition.

Definition at line 8 of file KoduConditionSee.cc.

const std::string & Kodu::KoduConditionSee::getObjectColor (  )  const

Returns a specified object's color.

Definition at line 30 of file KoduConditionSee.cc.

const std::string & Kodu::KoduConditionSee::getObjectType (  )  const

Returns a specified object's type.

Definition at line 34 of file KoduConditionSee.cc.

const DualCoding::ShapeRoot Kodu::KoduConditionSee::getTargetObject (  ) 

Returns the target object... if none is available, return an invalid object.

Definition at line 38 of file KoduConditionSee.cc.

bool Kodu::KoduConditionSee::isSameTypeAs ( const KoduPrimitive kPrimitive  )  [static]

Tests if the primitive argument is the same as the calling class.

Reimplemented from Kodu::KoduPrimitive.

Definition at line 42 of file KoduConditionSee.cc.

KoduConditionSee& Kodu::KoduConditionSee::operator= ( const KoduConditionSee kCondition  ) 

Assignment operator.

Definition at line 46 of file KoduConditionSee.h.

void Kodu::KoduConditionSee::printAttrs (  )  const [virtual]

Prints the attributes of a particular instance.

Reimplemented from Kodu::KoduCondition.

Definition at line 50 of file KoduConditionSee.cc.

void Kodu::KoduConditionSee::reinitialize (  )  [virtual]

Used to reinitialize certain variables (e.g. when switching to another page).

Reimplemented from Kodu::KoduCondition.

Definition at line 46 of file KoduConditionSee.cc.


Member Data Documentation

Definition at line 80 of file KoduConditionSee.h.

Referenced by evaluate(), operator=(), and printAttrs().

std::string Kodu::KoduConditionSee::objColor [private]

Definition at line 82 of file KoduConditionSee.h.

Referenced by evaluate(), getObjectColor(), operator=(), and printAttrs().

std::string Kodu::KoduConditionSee::objType [private]

Definition at line 81 of file KoduConditionSee.h.

Referenced by evaluate(), getObjectType(), operator=(), and printAttrs().

DualCoding::ShapeRoot Kodu::KoduConditionSee::refdObject [private]

Definition at line 84 of file KoduConditionSee.h.

Referenced by getTargetObject(), and operator=().

Definition at line 83 of file KoduConditionSee.h.

Referenced by evaluate(), and operator=().


The documentation for this class was generated from the following files:

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:24 2016 by Doxygen 1.6.3