Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Kodu::KoduActionPlay Class Reference

Kodu Action Play class (derived from Kodu Action). More...

#include <KoduActionPlay.h>

Inheritance diagram for Kodu::KoduActionPlay:

Detailed Description

Kodu Action Play class (derived from Kodu Action).

Definition at line 19 of file KoduActionPlay.h.

List of all members.

Public Member Functions

 KoduActionPlay (const LiteralGenerator &kSoundFile, bool useOnce)
 Constructor.
 KoduActionPlay (const KoduActionPlay &kAction)
 Copy constructor.
 ~KoduActionPlay ()
 Destructor.
KoduActionPlayoperator= (const KoduActionPlay &kAction)
 Assignment operator.
const std::string & getSoundFile ()
 Returns the name of the sound file.
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

LiteralGenerator soundFile
 Returns the name of the sound file the agent needs to play.

Constructor & Destructor Documentation

Kodu::KoduActionPlay::KoduActionPlay ( const LiteralGenerator kSoundFile,
bool  useOnce 
)

Constructor.

Definition at line 22 of file KoduActionPlay.h.

Kodu::KoduActionPlay::KoduActionPlay ( const KoduActionPlay kAction  ) 

Copy constructor.

Definition at line 29 of file KoduActionPlay.h.

Kodu::KoduActionPlay::~KoduActionPlay (  ) 

Destructor.

Definition at line 36 of file KoduActionPlay.h.


Member Function Documentation

const std::string & Kodu::KoduActionPlay::getSoundFile (  ) 

Returns the name of the sound file.

Definition at line 5 of file KoduActionPlay.cc.

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

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

Reimplemented from Kodu::KoduPrimitive.

Definition at line 9 of file KoduActionPlay.cc.

KoduActionPlay& Kodu::KoduActionPlay::operator= ( const KoduActionPlay kAction  ) 

Assignment operator.

Definition at line 41 of file KoduActionPlay.h.

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

Prints the attributes of a particular instance.

Reimplemented from Kodu::KoduAction.

Definition at line 17 of file KoduActionPlay.cc.

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

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

Reimplemented from Kodu::KoduAction.

Definition at line 13 of file KoduActionPlay.cc.


Member Data Documentation

Returns the name of the sound file the agent needs to play.

Definition at line 63 of file KoduActionPlay.h.

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


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

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