Ejemplo n.º 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;
 }
 @Override
 public EnutrofDepositPlacement newInstance() {
   EnutrofDepositPlacement re;
   try {
     re = (EnutrofDepositPlacement) EnutrofDepositPlacement.m_staticPool.borrowObject();
     re.m_pool = EnutrofDepositPlacement.m_staticPool;
   } catch (Exception e) {
     re = new EnutrofDepositPlacement();
     re.m_pool = null;
     re.m_isStatic = false;
     EnutrofDepositPlacement.m_logger.error(
         (Object)
             ("Erreur lors d'un checkOut sur un EnutrofDepositPlacement : " + e.getMessage()));
   }
   return re;
 }
Ejemplo n.º 3
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;
 }