public Player() { this.name = ""; this.level = FileSetup.LevelRead(Game.levelFile); this.health = 100; hunger = 100; this.entityType = EntityType.PLAYER; storage = new Item[Files.GetFileSize(Game.itemFile, false)]; coins = FileSetup.CoinRead(Game.coinFile); }
public Player(string name, string itemPlayerFile) { this.name = name; this.level = FileSetup.LevelRead(Game.levelFile); this.health = 100; hunger = 100; this.entityType = EntityType.PLAYER; storage = new Item[Files.GetFileSize(itemPlayerFile, false)]; coins = FileSetup.CoinRead(Game.coinFile); age = 0; }