コード例 #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;
 }