Beispiel #1
0
 public void Attack(characterStatus attackTarget)
 {
     print("attack");
     attackTarget.curHP -= curATK;
     if (attackTarget.curHP < 0)
     {
         attackTarget.curHP = 0;
     }
 }
Beispiel #2
0
 //初始化所有角色属性
 public void initAllCharacterStatus()
 {
     characterList[0] = new characterStatus("", 8, 9, 1, SIDE.NONE_SIDE, 0);
     characterList[1] = new characterStatus("", 7, 9, 1, SIDE.NONE_SIDE, 1);
     characterList[2] = new characterStatus("", 9, 0, 1, SIDE.NONE_SIDE, 2);
     characterList[3] = new characterStatus("", 6, 4, 0, SIDE.NONE_SIDE, 3);
     characterList[4] = new characterStatus("", 8, 6, 1, SIDE.NONE_SIDE, 4);
     characterList[5] = new characterStatus("", 5, 9, 1, SIDE.NONE_SIDE, 5);
     characterList[6] = new characterStatus("", 7, 9, 1, SIDE.NONE_SIDE, 6);
 }