AppEasy Core SDK  1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
CzActionsTimer.h
Go to the documentation of this file.
00001 // 
00002 //
00003 // AppEasy SDK - Cross Platform Multi-purpose Game and App Engine
00004 //
00005 // Developed by Matthew Hopwood of Pocketeers Limited - www.pocketeers.co.uk
00006 //
00007 // For updates, tutorials and more details check out www.appeasymobile.com
00008 //
00009 // This code is provided free of charge and without any warranty whatsoever. You must ensure that this whole notice is present in all files and derivatives, so the reader knows its origin.
00010 // If you use this SDK in your product then please ensure that you credit AppEasy's usage appropriately. Please see www.appeasymobile.com for licensing details and support
00011 //
00012 //
00013 
00014 #if !defined(_CZ_ACTIONS_TIMER_H_)
00015 #define _CZ_ACTIONS_TIMER_H_
00016 
00017 #include "CzActions.h"
00018 #include "CzXoml.h"
00019 
00020 /**
00021  @addtogroup Actions
00022  @{
00023  */
00024  
00025 /**
00026  @class CzXomlActions_Timer
00027 
00028  @brief Implements actions that are timer related
00029 
00030  The CzXomlActions_Timer class holds Actions (IzXomlAction) that deal with timer related functionality such as ChangeTimer
00031  
00032  The following actions are supported:
00033  - ChangeTimer
00034 
00035  The above actions have the following XOML prototypes:
00036  - ChangeTimer(timer-name, container-name, command)
00037    - timer-name - Name of timer to change
00038    - container-name - Name of container that holds the timer
00039    - command-name - Name of command to pass to timer (start, stop, pause)
00040 
00041  For more information on timers see CzTimer.
00042  
00043  */
00044 class CzXomlActions_Timer : public IzXomlAction
00045 {
00046 public:
00047     enum eActionType
00048     {
00049         Action_ChangeTimer      = 0, 
00050         Action_Max              = 1, 
00051     };
00052 protected:
00053     eActionType Type;
00054     CzXomlActions_Timer() {}
00055 public:
00056     CzXomlActions_Timer(eActionType type)
00057     {
00058         Type = type;
00059         switch (Type)
00060         {
00061         case Action_ChangeTimer:
00062             setActionName("changetimer");
00063             break;
00064         }
00065     }
00066     void Execute(IzXomlResource* source, CzAction* action);
00067 };
00068 
00069 /// @}
00070 
00071 #endif // _CZ_ACTIONS_TIMER_H_