public playerStatus status; //håller reda på isrunning mm #endregion Fields #region Constructors public Player(Vector3 pos, GraphicsDevice device) { position = pos; camera = new Camera(device, getCameraPos()); status = new playerStatus(); rifle = new Weapon(camera, status); speedY = 0.0f; }
public Player(Vector3 pos, GraphicsDevice device) { position = pos; camera = new Camera(device, getCameraPos()); status = new playerStatus(); rifle = new Weapon(camera, status); speedY = 0.0f; }
public Weapon(Camera cam, playerStatus stat) { camera = cam; zRecoil = 0f; clip = MAXCLIP; rounds = MAXROUNDS; timer = 0.0f; animation = false; empty = false; reloadTimer = 0.0f; status = stat; }
public Player(float x, float y, float z, Int32 identity, Int32 charModel, GraphicsDevice device) { ChangePosition(x, y, z); id = identity; Console.WriteLine("id: " + id.ToString()); Globals.player.id = identity; alive = true; model = charModel; camera = new Camera(device, getCameraPos()); status = new playerStatus(); rifle = new Weapon(camera, status); speedY = 0.0f; Globals.player.model = charModel; }