Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Kodu::KoduConditionBump Class Reference

#include <KoduConditionBump.h>

Inheritance diagram for Kodu::KoduConditionBump:

Detailed Description

Definition at line 19 of file KoduConditionBump.h.

List of all members.

Public Member Functions

 KoduConditionBump (bool useNot, const std::string &kObjectType, const std::string &kObjectColor, SearchLocation_t locationToSearch)
 Constructor.
 KoduConditionBump (const KoduConditionBump &kCondition)
 Copy constructor.
 ~KoduConditionBump ()
 Destructor.
KoduConditionBumpoperator= (const KoduConditionBump &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.
bool agentIsNearMatchingObject (const DualCoding::ShapeRoot &)
void setVisualBumpDetection (bool)

Static Public Member Functions

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

Static Public Attributes

static const float kMaxDistanceAwayToSenseBump = 100.0f
 The maximum distance the agent can be away from an object to sense a "bump".

Private Attributes

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

Constructor & Destructor Documentation

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

Constructor.

Definition at line 22 of file KoduConditionBump.h.

Kodu::KoduConditionBump::KoduConditionBump ( const KoduConditionBump kCondition  ) 

Copy constructor.

Definition at line 35 of file KoduConditionBump.h.

Kodu::KoduConditionBump::~KoduConditionBump (  ) 

Destructor.

Definition at line 47 of file KoduConditionBump.h.


Member Function Documentation

bool Kodu::KoduConditionBump::agentIsNearMatchingObject ( const DualCoding::ShapeRoot &  kExcludedShape  ) 

Definition at line 31 of file KoduConditionBump.cc.

Referenced by Kodu::VisualBumpDetectionTask::canExecute().

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

Checks if a specified object was bumped.

Implements Kodu::KoduCondition.

Definition at line 10 of file KoduConditionBump.cc.

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

Returns a specified object's color.

Definition at line 60 of file KoduConditionBump.cc.

Referenced by Kodu::VisualBumpDetectionTask::VisualBumpDetectionTask().

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

Returns a specified object's type.

Definition at line 64 of file KoduConditionBump.cc.

Referenced by Kodu::VisualBumpDetectionTask::VisualBumpDetectionTask().

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

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

Definition at line 68 of file KoduConditionBump.cc.

Referenced by Kodu::VisualBumpDetectionTask::examineTaskResults().

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

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

Reimplemented from Kodu::KoduPrimitive.

Definition at line 72 of file KoduConditionBump.cc.

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

Assignment operator.

Definition at line 52 of file KoduConditionBump.h.

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

Prints the attributes of a particular instance.

Reimplemented from Kodu::KoduCondition.

Definition at line 80 of file KoduConditionBump.cc.

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

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

Reimplemented from Kodu::KoduCondition.

Definition at line 76 of file KoduConditionBump.cc.

void Kodu::KoduConditionBump::setVisualBumpDetection ( bool  bval  ) 

Member Data Documentation

Definition at line 103 of file KoduConditionBump.h.

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

Definition at line 98 of file KoduConditionBump.h.

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

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

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