Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Kodu::KoduConditionHear Class Reference

#include <KoduConditionHear.h>

Inheritance diagram for Kodu::KoduConditionHear:

Detailed Description

Definition at line 16 of file KoduConditionHear.h.

List of all members.

Public Member Functions

 KoduConditionHear (bool useNot, const std::string &kObjectType, const std::string &kObjectColor, const std::string &kSaid)
 Constructor.
 KoduConditionHear (const KoduConditionHear &kCondition)
 Copy constructor.
 ~KoduConditionHear ()
 Destructor.
KoduConditionHearoperator= (const KoduConditionHear &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
std::string said

Constructor & Destructor Documentation

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

Constructor.

Definition at line 19 of file KoduConditionHear.h.

Kodu::KoduConditionHear::KoduConditionHear ( const KoduConditionHear kCondition  ) 

Copy constructor.

Definition at line 28 of file KoduConditionHear.h.

Kodu::KoduConditionHear::~KoduConditionHear (  ) 

Destructor.

Definition at line 37 of file KoduConditionHear.h.


Member Function Documentation

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

Checks if a specified object was bumped.

Implements Kodu::KoduCondition.

Definition at line 13 of file KoduConditionHear.cc.

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

Returns a specified object's color.

Definition at line 57 of file KoduConditionHear.h.

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

Returns a specified object's type.

Definition at line 60 of file KoduConditionHear.h.

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

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

Definition at line 32 of file KoduConditionHear.cc.

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

Assignment operator.

Definition at line 42 of file KoduConditionHear.h.

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

Prints the attributes of a particular instance.

Reimplemented from Kodu::KoduCondition.

Definition at line 38 of file KoduConditionHear.cc.

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

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

Reimplemented from Kodu::KoduCondition.

Definition at line 27 of file KoduConditionHear.cc.


Member Data Documentation

Definition at line 72 of file KoduConditionHear.h.

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

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

Definition at line 74 of file KoduConditionHear.h.

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

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

Definition at line 73 of file KoduConditionHear.h.

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

std::string Kodu::KoduConditionHear::said [private]

Definition at line 75 of file KoduConditionHear.h.

Referenced by evaluate(), 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