public DurationAction(MyGame theGame, int amountOfPlays) : base() { m_theGame = theGame; m_timer = new PTimer(m_theGame.TimerManager, Loop); m_playsLeft = m_initialAmountOfPlays = amountOfPlays; }
internal void RemoveTimer(PTimer timer) { timers.Remove(timer); }
internal void AddTimer(PTimer timer) { timers.Add(timer); }
public ActiveList(MyGame theGame, float updateTickInSeconds) { m_theGame = theGame; m_timer = new PTimer(theGame.TimerManager, OnUpdate); m_timer.Interval = updateTickInSeconds; }
protected override void Initialize() { // TODO: Add your initialization logic here m_flashComboTimer = new PTimer(this.TimerManager, delegate() { m_bgColor = blue; }); m_flashComboTimer.Interval = 0.1f; base.Initialize(); }
public Camera2D(Vector2 focusPoint) { m_transform = new Transform(); m_centerMatrix = Matrix.CreateTranslation(focusPoint.X, focusPoint.Y, 0); m_cameraShakeTimer = new PTimer(Program.TheGame.TimerManager, StopShake); }
public DurationAction(MyGame theGame, int amountOfPlays) : base() { m_theGame = theGame; m_timer = new PTimer(m_theGame.TimerManager, Loop); m_amountOfPlays = m_initialAmountOfPlays = amountOfPlays; }