Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Kodu::Parser::KodeCreator Class Reference

Used to create the pages, rules, conditions, and actions of a Kodu program. More...

#include <Parser.h>


Detailed Description

Used to create the pages, rules, conditions, and actions of a Kodu program.

Definition at line 73 of file Parser.h.

List of all members.

Static Public Member Functions

static bool createKode (const std::vector< ParsedPage * > &, std::vector< KoduPage * > &)
 Takes the parsed tokens and creates a Kodu game.

Private Member Functions

 DISALLOW_INSTANTIATION (KodeCreator)
 Disallows anyone from creating an instance of this class.

Static Private Member Functions

static KoduActiongetActionKode (ParsedPhrase *)
 Used to call the appropriate Kode action parser depending on the Phrase head.
static KoduConditiongetConditionKode (ParsedPhrase *)
 Used to call the appropriate Kode condition parser depending on the Phrase head.
static bool isComparisonOperator (TokenBase *)
 Checks if a modifier is a comparison operator.
static bool isNumericSpecifier (TokenBase *)
 Checks if a modifier is a numeric specifier (random modifier or number(s)).
static bool isScoreDesignator (TokenBase *)
 Checks if a modifier is a score designator.
static bool numericGenParser (std::vector< TokenBase * > &, NumericGenerator &)
 Creates a Numeric Generator from numeric specifiers (random modifier and/or number(s)).
static KoduActionDropcreateDropKode (std::vector< TokenBase * > &)
 Creates the drop action.
static KoduActionGivecreateGiveKode (std::vector< TokenBase * > &)
 Creates the give action.
static KoduActionGrabcreateGrabKode (std::vector< TokenBase * > &)
 Creates the grab action.
static KoduActionMotioncreateMoveKode (std::vector< TokenBase * > &)
 Creates the move action.
static KoduActionPlaycreatePlayKode (std::vector< TokenBase * > &)
 Creates the play action.
static KoduActionSaycreateSayKode (std::vector< TokenBase * > &)
 Creates the say action.
static KoduActionScorecreateScoreKode (const std::string &, std::vector< TokenBase * > &)
 Creates the score action.
static KoduActionMotioncreateTurnKode (std::vector< TokenBase * > &)
 Creates the move action.
static KoduConditionBumpcreateBumpKode (std::vector< TokenBase * > &)
 Creates the bump condition.
static KoduConditionGotcreateGotKode (std::vector< TokenBase * > &)
 Creates the got condition.
static KoduConditionSeecreateSeeKode (std::vector< TokenBase * > &)
 Creates the see condition.
static KoduConditionScoredcreateScoredKode (std::vector< TokenBase * > &)
 Creates the scored condition.
static KoduConditionTimercreateTimerKode (std::vector< TokenBase * > &)
 Creates the timer condition.
static KoduConditionGamepadcreateGamepadKode (std::vector< TokenBase * > &)
 Create Gamepad Button Condition.
static KoduConditionHearcreateHearKode (std::vector< TokenBase * > &)

Member Function Documentation

KoduConditionBump * Kodu::Parser::KodeCreator::createBumpKode ( std::vector< TokenBase * > &  mods  )  [static, private]

Creates the bump condition.

Definition at line 101 of file KodeConditionCreators.cc.

Referenced by getConditionKode().

KoduActionDrop * Kodu::Parser::KodeCreator::createDropKode ( std::vector< TokenBase * > &  mods  )  [static, private]

Creates the drop action.

Definition at line 10 of file KodeActionCreators.cc.

Referenced by getActionKode().

KoduConditionGamepad * Kodu::Parser::KodeCreator::createGamepadKode ( std::vector< TokenBase * > &  mods  )  [static, private]

Create Gamepad Button Condition.

Definition at line 37 of file KodeConditionCreators.cc.

Referenced by getConditionKode().

KoduActionGive * Kodu::Parser::KodeCreator::createGiveKode ( std::vector< TokenBase * > &  mods  )  [static, private]

Creates the give action.

Definition at line 4 of file KodeActionCreators.cc.

Referenced by getActionKode().

KoduConditionGot * Kodu::Parser::KodeCreator::createGotKode ( std::vector< TokenBase * > &  mods  )  [static, private]

Creates the got condition.

Definition at line 199 of file KodeConditionCreators.cc.

Referenced by getConditionKode().

KoduActionGrab * Kodu::Parser::KodeCreator::createGrabKode ( std::vector< TokenBase * > &  mods  )  [static, private]

Creates the grab action.

Definition at line 19 of file KodeActionCreators.cc.

Referenced by getActionKode().

KoduConditionHear * Kodu::Parser::KodeCreator::createHearKode ( std::vector< TokenBase * > &  mods  )  [static, private]

Definition at line 7 of file KodeConditionCreators.cc.

Referenced by getConditionKode().

bool Kodu::Parser::KodeCreator::createKode ( const std::vector< ParsedPage * > &  tempPages,
std::vector< KoduPage * > &  koduPages 
) [static]

Takes the parsed tokens and creates a Kodu game.

Definition at line 7 of file KodeCreator.cc.

Referenced by Kodu::Parser::parseAndCreateKoduProgram().

KoduActionMotion * Kodu::Parser::KodeCreator::createMoveKode ( std::vector< TokenBase * > &  mods  )  [static, private]

Creates the move action.

Definition at line 84 of file KodeActionCreators.cc.

Referenced by getActionKode().

KoduActionPlay * Kodu::Parser::KodeCreator::createPlayKode ( std::vector< TokenBase * > &  mods  )  [static, private]

Creates the play action.

Definition at line 187 of file KodeActionCreators.cc.

Referenced by getActionKode().

KoduActionSay * Kodu::Parser::KodeCreator::createSayKode ( std::vector< TokenBase * > &  mods  )  [static, private]

Creates the say action.

Definition at line 245 of file KodeActionCreators.cc.

Referenced by getActionKode().

KoduConditionScored * Kodu::Parser::KodeCreator::createScoredKode ( std::vector< TokenBase * > &  mods  )  [static, private]

Creates the scored condition.

Definition at line 379 of file KodeConditionCreators.cc.

Referenced by getConditionKode().

KoduActionScore * Kodu::Parser::KodeCreator::createScoreKode ( const std::string &  scoreType,
std::vector< TokenBase * > &  mods 
) [static, private]

Creates the score action.

Definition at line 329 of file KodeActionCreators.cc.

Referenced by getActionKode().

KoduConditionSee * Kodu::Parser::KodeCreator::createSeeKode ( std::vector< TokenBase * > &  mods  )  [static, private]

Creates the see condition.

Definition at line 269 of file KodeConditionCreators.cc.

Referenced by getConditionKode().

KoduConditionTimer * Kodu::Parser::KodeCreator::createTimerKode ( std::vector< TokenBase * > &  mods  )  [static, private]

Creates the timer condition.

Definition at line 483 of file KodeConditionCreators.cc.

Referenced by getConditionKode().

KoduActionMotion * Kodu::Parser::KodeCreator::createTurnKode ( std::vector< TokenBase * > &  mods  )  [static, private]

Creates the move action.

Definition at line 416 of file KodeActionCreators.cc.

Referenced by getActionKode().

Kodu::Parser::KodeCreator::DISALLOW_INSTANTIATION ( KodeCreator   )  [private]

Disallows anyone from creating an instance of this class.

KoduAction * Kodu::Parser::KodeCreator::getActionKode ( ParsedPhrase tempAction  )  [static, private]

Used to call the appropriate Kode action parser depending on the Phrase head.

Definition at line 195 of file KodeCreator.cc.

Referenced by createKode().

KoduCondition * Kodu::Parser::KodeCreator::getConditionKode ( ParsedPhrase tempCondition  )  [static, private]

Used to call the appropriate Kode condition parser depending on the Phrase head.

Definition at line 110 of file KodeCreator.cc.

Referenced by createKode().

bool Kodu::Parser::KodeCreator::isComparisonOperator ( TokenBase mod  )  [static, private]

Checks if a modifier is a comparison operator.

Definition at line 297 of file KodeCreator.cc.

Referenced by createScoredKode().

bool Kodu::Parser::KodeCreator::isNumericSpecifier ( TokenBase mod  )  [static, private]

Checks if a modifier is a numeric specifier (random modifier or number(s)).

Definition at line 308 of file KodeCreator.cc.

Referenced by createScoredKode(), createScoreKode(), and createTimerKode().

bool Kodu::Parser::KodeCreator::isScoreDesignator ( TokenBase mod  )  [static, private]

Checks if a modifier is a score designator.

Definition at line 302 of file KodeCreator.cc.

Referenced by createScoredKode(), and createScoreKode().

bool Kodu::Parser::KodeCreator::numericGenParser ( std::vector< TokenBase * > &  mods,
NumericGenerator numgen 
) [static, private]

Creates a Numeric Generator from numeric specifiers (random modifier and/or number(s)).

Definition at line 313 of file KodeCreator.cc.

Referenced by createScoredKode(), createScoreKode(), and createTimerKode().


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