public CameraMan(InputDevice input) { this.input = input; Direction = new Direction(); Position = new WorldPosition(); input.Keyboard.KeyDown += Keyboard_KeyDown; }
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); }
/// <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); }
public AbstractDrawable() { Direction = new Direction(); Position = new WorldPosition(); }