Esempio n. 1
0
 public CameraMan(InputDevice input)
 {
     this.input = input;
     Direction = new Direction();
     Position = new WorldPosition();
     input.Keyboard.KeyDown += Keyboard_KeyDown;
 }
Esempio n. 2
0
		public Player (InputDevice input)
		{
			keyUp=false;keyDown=false;keyCounter=false;keyClock=false;
			keyFore=false;keyBack=false;keyLeft=false;keyRight=false;
			capture_mouse=false;
            this.input = input;
            Direction = new Direction();
            Position = new WorldPosition();

            Health = 20;

            input.Keyboard.KeyDown += Keyboard_KeyDown;
			input.Keyboard.KeyUp   += Keyboard_KeyUp;
            input.Mouse.WheelChanged += new EventHandler<MouseWheelEventArgs>(Mouse_WheelChanged);
            input.Mouse.Move += new EventHandler<MouseMoveEventArgs>(Mouse_Move);
		}
Esempio n. 3
0
 public AbstractDrawable()
 {
     Direction = new Direction();
     Position = new WorldPosition();
 }