public void setNewCharacter(string n) { this.player.name = n; this.player.id = 0; this.player.inventory = Blanks.defaultHumanEQ(0, mSEX.MALE); this.player.gender = mSEX.MALE; int[] stats = { 10, 12, 12, 10, 10, 10, 10 }; this.player.stats = Blanks.createStats(stats); mCLASS c = new mCLASS(); c.Class = WARRIOR.WARRIOR; this.player.pClass = c; }
public void setEnemyClass(mCLASS c) { this.pMob.eClass = c; }
public Enemy(int id, int hp = 0, int spd = 0, Equipment equipped = default(Equipment), pStat stat = default(pStat), mDOMAIN dom = mDOMAIN.NONE, mCLASS c = default(mCLASS), mSEX g = mSEX.MALE) { this.pMob.enemyId = id; this.pMob.health = hp; this.pMob.speed = spd; this.pMob.items = equipped; this.pMob.stats = stat; this.pMob.domain = dom; this.pMob.eClass = c; this.pMob.gender = g; }