예제 #1
0
 /// <summary>
 /// Default Update Event Handler
 /// </summary>	
 protected virtual void BaseGameControl_Update(IGameControl sender, GameControlTimedEventArgs args)
 {
     //Set focus
     Focus = (ParentForm.UI.ControlWithFocus == this);
 }
예제 #2
0
 public BaseGameControl(float elapsedtime,float totaltime)
 {
     WireUpEvents();
     GameControlTimedEventArgs a = new GameControlTimedEventArgs(elapsedtime,totaltime);
     Init(this, a);
 }
예제 #3
0
 /// <summary>
 /// Default Init Event Handler
 /// </summary>
 protected virtual void BaseGameControl_Init(IGameControl sender, GameControlTimedEventArgs args)
 {
     mSourceRectangles = new Dictionary<string, Rectangle>();
     if (args != null)
     {
         ElapsedTime = args.ElapsedTime;
         TotalTime = args.TotalTime;
     }
 }