Пример #1
0
 public DurationAction(MyGame theGame, int amountOfPlays)
     : base()
 {
     m_theGame   = theGame;
     m_timer     = new PTimer(m_theGame.TimerManager, Loop);
     m_playsLeft = m_initialAmountOfPlays = amountOfPlays;
 }
Пример #2
0
 internal void RemoveTimer(PTimer timer)
 {
     timers.Remove(timer);
 }
Пример #3
0
 internal void AddTimer(PTimer timer)
 {
     timers.Add(timer);
 }
Пример #4
0
 internal void RemoveTimer(PTimer timer)
 {
     timers.Remove(timer);
 }
Пример #5
0
 internal void AddTimer(PTimer timer)
 {
     timers.Add(timer);
 }
Пример #6
0
 public ActiveList(MyGame theGame, float updateTickInSeconds)
 {
     m_theGame        = theGame;
     m_timer          = new PTimer(theGame.TimerManager, OnUpdate);
     m_timer.Interval = updateTickInSeconds;
 }
Пример #7
0
 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();
 }
Пример #8
0
 public ActiveList(MyGame theGame, float updateTickInSeconds)
 {
     m_theGame = theGame;
     m_timer = new PTimer(theGame.TimerManager, OnUpdate);
     m_timer.Interval = updateTickInSeconds;
 }
Пример #9
0
 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);
 }
Пример #10
0
 public DurationAction(MyGame theGame, int amountOfPlays)
     : base()
 {
     m_theGame = theGame;
     m_timer = new PTimer(m_theGame.TimerManager, Loop);
     m_amountOfPlays = m_initialAmountOfPlays = amountOfPlays;
 }