Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Kodu::KoduConditionGot Class Reference

#include <KoduConditionGot.h>

Inheritance diagram for Kodu::KoduConditionGot:

Detailed Description

Definition at line 19 of file KoduConditionGot.h.

List of all members.

Public Member Functions

 KoduConditionGot (bool useNot, const std::string &kObjectType, const std::string &kObjectColor)
 Constructor.
 KoduConditionGot (const KoduConditionGot &kCondition)
 Copy constructor.
 ~KoduConditionGot ()
 Destructor.
KoduConditionGotoperator= (const KoduConditionGot &kCondition)
 Assignment operator.
virtual bool evaluate (const KoduWorld &)
 Checks if a specified object was bumped.
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.

Private Attributes

bool notModifierEnabled
std::string objType
std::string objColor

Constructor & Destructor Documentation

Kodu::KoduConditionGot::KoduConditionGot ( bool  useNot,
const std::string &  kObjectType,
const std::string &  kObjectColor 
)

Constructor.

Definition at line 22 of file KoduConditionGot.h.

Kodu::KoduConditionGot::KoduConditionGot ( const KoduConditionGot kCondition  ) 

Copy constructor.

Definition at line 30 of file KoduConditionGot.h.

Kodu::KoduConditionGot::~KoduConditionGot (  ) 

Destructor.

Definition at line 38 of file KoduConditionGot.h.


Member Function Documentation

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

Checks if a specified object was bumped.

Implements Kodu::KoduCondition.

Definition at line 15 of file KoduConditionGot.cc.

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

Returns a specified object's color.

Definition at line 43 of file KoduConditionGot.cc.

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

Returns a specified object's type.

Definition at line 47 of file KoduConditionGot.cc.

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

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

Definition at line 52 of file KoduConditionGot.cc.

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

Assignment operator.

Definition at line 43 of file KoduConditionGot.h.

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

Prints the attributes of a particular instance.

Reimplemented from Kodu::KoduCondition.

Definition at line 61 of file KoduConditionGot.cc.

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

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

Reimplemented from Kodu::KoduCondition.

Definition at line 57 of file KoduConditionGot.cc.


Member Data Documentation

Definition at line 72 of file KoduConditionGot.h.

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

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

Definition at line 74 of file KoduConditionGot.h.

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

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

Definition at line 73 of file KoduConditionGot.h.

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


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