Exemplo n.º 1
0
 public CameraMan(InputDevice input)
 {
     this.input = input;
     Direction = new Direction();
     Position = new WorldPosition();
     input.Keyboard.KeyDown += Keyboard_KeyDown;
 }
Exemplo 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);
		}
Exemplo n.º 3
0
 /// <summary>
 /// Creates a block at given world position
 /// </summary>
 /// <param name="worldX">World X Coordinate</param>
 /// <param name="worldZ">World Z Coordinate</param>
 /// <param name="worldY">World Y Coordinate</param>
 public Block(double worldX, double worldY, double worldZ, int textureId)
 {
     _textureId = textureId;
     Position = new WorldPosition(worldX, worldY, worldZ);
 }
Exemplo n.º 4
0
 public AbstractDrawable()
 {
     Direction = new Direction();
     Position = new WorldPosition();
 }