コード例 #1
0
 public GetFightersLevelSum(final ArrayList<ParserObject> args) {
   super();
   if (args.isEmpty()) {
     return;
   }
   this.m_monsters = "monster".equalsIgnoreCase(args.get(0).getValue());
 }
コード例 #2
0
 GetFightersCountInRange(final ArrayList<ParserObject> args) {
   super();
   this.checkType(args);
   if (args.size() == 1) {
     this.m_maxRange = args.get(0);
   } else if (args.size() == 2) {
     this.m_maxRange = args.get(0);
     this.m_target = args.get(1).getValue().equalsIgnoreCase("target");
   } else if (args.size() == 3) {
     this.m_minRange = args.get(0);
     this.m_maxRange = args.get(1);
     this.m_target = args.get(2).getValue().equalsIgnoreCase("target");
   } else if (args.size() == 4) {
     this.m_minRange = args.get(0);
     this.m_maxRange = args.get(1);
     this.m_target = args.get(2).getValue().equalsIgnoreCase("target");
     this.m_inLine = args.get(3);
   } else if (args.size() == 5) {
     this.m_minRange = args.get(0);
     this.m_maxRange = args.get(1);
     this.m_target = args.get(2).getValue().equalsIgnoreCase("target");
     this.m_inLine = args.get(3);
     this.m_testLoS = args.get(4);
   }
 }
コード例 #3
0
 public IsProtectorInFight(final ArrayList<ParserObject> args) {
   super();
   this.m_target =
       (this.checkType(args) == 0 && args.get(0).getValue().equalsIgnoreCase("target"));
 }