public Player(Game g, int pHealth, int pMana, Inventory pInventory, Spawn pSpawn) { id = 0; health = pHealth; mana = pMana; items = pInventory; position = pSpawn.getPosition(); spawn = pSpawn; box = new BoundingBox(); physics = new Physics(); textures = new List<Texture2D>(); moveSpeed = 100.0f; jumpSpeed = 50.0f; ui = new UserInterface(g); game = g; ui.Initialize(); }
// get/set methods public void setSpawn(Spawn newSpawn) { spawn = newSpawn; }