Esempio n. 1
0
 public static PlayerShip BackToObj(string[] input)
 {
     PlayerShip p=new PlayerShip();
       for(int x=0;x<input.Length;x++)
     p.rooms.Add(Room.BackToObj(input[x]));
       p.rooms.Sort(Room.Compare);
       return p;
 }
Esempio n. 2
0
 public drawingpanel(int scrWidth,int scrHeight)
 {
     this.Width=scrWidth;
       this.Height=scrHeight;
       this.Location=new Point(0,0);
       this.DoubleBuffered=true;
       this.Paint+=new System.Windows.Forms.PaintEventHandler(this.PaintEvent);
       this.MouseMove+=new System.Windows.Forms.MouseEventHandler(this.MouseMoveEvent);
       this.MouseDown+=new System.Windows.Forms.MouseEventHandler(this.MouseDownEvent);
       this.MouseUp+=new System.Windows.Forms.MouseEventHandler(this.MouseUpEvent);
       pl=new PlayerShip();
       Invalidate();
       mx=0;
       my=0;
 }