예제 #1
0
 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);
 }
예제 #2
0
 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;
 }