コード例 #1
0
ファイル: UI.cs プロジェクト: TwoLeggedMammal/Summons
 public MonsterStatusDialog MakeMonsterStatusDialog(Monster monster)
 {
     MonsterStatusDialog dialog = new MonsterStatusDialog(monster);
     monsterStatusDialogCollection.Add(dialog);
     return dialog;
 }
コード例 #2
0
ファイル: Actor.cs プロジェクト: TwoLeggedMammal/Summons
 public Monster(int x, int y, Player player)
     : base(x, y, player)
 {
     // Default values for everything in case we don't define in a subclass
     this.name = "???";
     this.XP = 0;
     this.maxXP = 100;
     this.HP = this.maxHP = this.previousHP = 10;
     this.rangedAP = 1;
     this.rangedAccuracy = 50;
     this.rangedAttacks = 3;
     this.meleeAP = 2;
     this.meleeAccuracy = 75;
     this.meleeAttacks = 2;
     this.armor = 0;
     this.critRate = 5;
     this.monsterLevel = 1;  // Used in deciding relative XP gain from battles with this monster
     this.texture = Assets.blackMageActor;
     this.status = UI.getInstance().MakeMonsterStatusDialog(this);
 }