Пример #1
0
        public void Reset()
        {
            mParent.SetEventSelf(mDeferredEvent);

            mDelay         = 0;
            mDeferredEvent = GameEventsList.eType.GE_NO;
        }
Пример #2
0
 protected void ResetEvent()
 {
     if (!IsCurrentEvent(GameEventsList.eType.GE_GAME_WAITING))
     {
         mCurrentEvent = GameEventsList.eType.GE_NO;
     }
 }
Пример #3
0
        public void Set(uint numberOfLoops, GameEventsList.eType deferredEvent)
        {
            mDelay         = numberOfLoops;
            mDeferredEvent = deferredEvent;

            mParent.SetEventSelf(GameEventsList.eType.GE_GAME_WAITING);
        }
Пример #4
0
        public Timer(GamePlay parent)
        {
            mParent = parent;

            mDelay         = 0;
            mDeferredEvent = GameEventsList.eType.GE_NO;
        }
Пример #5
0
 protected void SetEventSelf(GameEventsList.eType e)
 {
     mCurrentEvent = e;
 }
Пример #6
0
 protected bool IsCurrentEvent(GameEventsList.eType e)
 {
     return(e == mCurrentEvent);
 }
Пример #7
0
 protected void GameEventHandler(GameEvent e)
 {
     mCurrentEvent = e.mEventType;
 }
Пример #8
0
 protected GameEventSubscriber()
 {
     mCurrentEvent = GameEventsList.eType.GE_NO;
 }
Пример #9
0
 public GameEvent(GameEventsList.eType type)
 {
     mEventType = type;
 }