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 ElementalCharacGain newInstance() {
   ElementalCharacGain re;
   try {
     re = (ElementalCharacGain) ElementalCharacGain.m_staticPool.borrowObject();
     re.m_pool = ElementalCharacGain.m_staticPool;
   } catch (Exception e) {
     re = new ElementalCharacGain();
     re.m_pool = null;
     re.m_isStatic = false;
     ElementalCharacGain.m_logger.error(
         (Object) ("Erreur lors d'un checkOut sur un ElementalCharacGain : " + e.getMessage()));
   }
   re.m_charac = this.m_charac;
   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;
 }
 @Override
 public RunningEffect<WakfuEffect, WakfuEffectContainer> newInstance() {
   ApplyFightProperty re;
   try {
     re = (ApplyFightProperty) ApplyFightProperty.m_staticPool.borrowObject();
     re.m_pool = ApplyFightProperty.m_staticPool;
   } catch (Exception e) {
     re = new ApplyFightProperty();
     re.m_pool = null;
     re.m_isStatic = false;
     ApplyFightProperty.m_logger.error(
         (Object) ("Erreur lors d'un checkOut sur un ApplyFightProperty : " + e.getMessage()));
   }
   re.m_value = this.m_value;
   return re;
 }
 @Override
 public CharacGainFunctionTriggeringSpellCost newInstance() {
   CharacGainFunctionTriggeringSpellCost re;
   try {
     re =
         (CharacGainFunctionTriggeringSpellCost)
             CharacGainFunctionTriggeringSpellCost.m_staticPool.borrowObject();
     re.m_pool = CharacGainFunctionTriggeringSpellCost.m_staticPool;
   } catch (Exception e) {
     re = new CharacGainFunctionTriggeringSpellCost();
     re.m_pool = null;
     re.m_isStatic = false;
     CharacGainFunctionTriggeringSpellCost.m_logger.error(
         (Object)
             ("Erreur lors d'un checkOut sur un CharacGainFunctionTriggeringSpellCost : "
                 + e.getMessage()));
   }
   re.m_charac = this.m_charac;
   return re;
 }
Ejemplo n.º 6
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;
 }