Ejemplo n.º 1
0
 public void OpenMap(string filename)
 {
     try
     {
         var map = new TiledSharp.TmxMap(filename);
         Controller = new GameController(this, map);
         mapView1.Controller = Controller;
         mapView1.Refresh();
         CurrentFilename = filename;
     }
     catch (Exception exc)
     {
         Console.WriteLine(exc);
         MessageBox.Show(exc.Message, "Error loading map",
                         MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// This is an event called on every logical "turn" of the game: whenever the player moves, and when the turn timer fires
 /// </summary>
 /// <param name="controller"></param>
 /// <param name="location"></param>
 public virtual void Turn(GameController controller, Point location)
 {
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Called when the player stands on top of a non-solid object
 /// </summary>
 /// <param name="player"></param>
 /// <param name="controller"></param>
 public virtual void PlayerEnter(Player player, GameController controller)
 {
 }