public void Reset() { mParent.SetEventSelf(mDeferredEvent); mDelay = 0; mDeferredEvent = GameEventsList.eType.GE_NO; }
protected void ResetEvent() { if (!IsCurrentEvent(GameEventsList.eType.GE_GAME_WAITING)) { mCurrentEvent = GameEventsList.eType.GE_NO; } }
public void Set(uint numberOfLoops, GameEventsList.eType deferredEvent) { mDelay = numberOfLoops; mDeferredEvent = deferredEvent; mParent.SetEventSelf(GameEventsList.eType.GE_GAME_WAITING); }
public Timer(GamePlay parent) { mParent = parent; mDelay = 0; mDeferredEvent = GameEventsList.eType.GE_NO; }
protected void SetEventSelf(GameEventsList.eType e) { mCurrentEvent = e; }
protected bool IsCurrentEvent(GameEventsList.eType e) { return(e == mCurrentEvent); }
protected void GameEventHandler(GameEvent e) { mCurrentEvent = e.mEventType; }
protected GameEventSubscriber() { mCurrentEvent = GameEventsList.eType.GE_NO; }
public GameEvent(GameEventsList.eType type) { mEventType = type; }