コード例 #1
0
 @Override
 public StateDecurse newInstance() {
   StateDecurse re;
   try {
     re = (StateDecurse) StateDecurse.m_staticPool.borrowObject();
     re.m_pool = StateDecurse.m_staticPool;
   } catch (Exception e) {
     re = new StateDecurse();
     re.m_pool = null;
     re.m_isStatic = false;
     StateDecurse.m_logger.error(
         (Object) ("Erreur lors d'un checkOut sur un StateDecurse : " + e.getMessage()));
   }
   return re;
 }
コード例 #2
0
 public static StateDecurse checkOut(
     final EffectContext<WakfuEffect> context, final int stateId, final EffectUser target) {
   assert target != null : "No target defined for StateDecurse effect";
   StateDecurse re;
   try {
     re = (StateDecurse) StateDecurse.m_staticPool.borrowObject();
     re.m_pool = StateDecurse.m_staticPool;
   } catch (Exception e) {
     re = new StateDecurse();
     re.m_isStatic = false;
     re.m_pool = null;
     StateDecurse.m_logger.error(
         (Object) ("Erreur lors d'un checkOut sur un ActionCost : " + e.getMessage()));
   }
   re.m_id = RunningEffectConstants.STATE_FORCE_UNAPPLY.getId();
   re.m_status = RunningEffectConstants.STATE_FORCE_UNAPPLY.getObject().getRunningEffectStatus();
   re.setTriggersToExecute();
   re.m_target = target;
   re.m_value = stateId;
   re.m_maxExecutionCount = -1;
   re.m_context = (EffectContext<FX>) context;
   return re;
 }