Exemplo n.º 1
0
 public void RemoveState(FighterStateEnum State)
 {
     if (this.HasState(State))
     {
         this.myStates[State].RemoveEffect();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="state"></param>
 /// <returns></returns>
 public AbstractSpellBuff FindState(FighterStateEnum state)
 {
     if (HasState(state))
     {
         return(m_states[state]);
     }
     return(null);
 }
Exemplo n.º 3
0
 public BuffEffect FindState(FighterStateEnum State)
 {
     if (this.HasState(State))
     {
         return(this.myStates[State]);
     }
     return(null);
 }
Exemplo n.º 4
0
		public BattleFighterState(int buffId, FighterStateEnum state, int showId, int round)
		{
			this.state = state;
			this.buffId = buffId;
			this.showId = showId;
			this.round = round;
			this.paramMap = new Dictionary<int, int>();
		}
Exemplo n.º 5
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="state"></param>
        /// <returns></returns>
        public bool CanState(FighterStateEnum state)
        {
            switch (state)
            {
            case FighterStateEnum.STATE_CARRIED:
            case FighterStateEnum.STATE_CARRIER:
                return(!HasState(FighterStateEnum.STATE_GRAVITY));
            }

            return(!HasState(state));
        }
Exemplo n.º 6
0
        public bool CanState(FighterStateEnum State)
        {
            switch (State)
            {
            case FighterStateEnum.STATE_PORTE:
            case FighterStateEnum.STATE_PORTEUR:
                return(!HasState(FighterStateEnum.STATE_PESANTEUR));
            }

            return(!HasState(State));
        }
Exemplo n.º 7
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="state"></param>
 /// <returns></returns>
 public bool HasState(FighterStateEnum state)
 {
     return(m_states.ContainsKey(state));
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="state"></param>
 /// <returns></returns>
 public bool HasState(FighterStateEnum state)
 {
     return m_states.ContainsKey(state);
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="state"></param>
 /// <returns></returns>
 public AbstractSpellBuff FindState(FighterStateEnum state)
 {
     if (HasState(state))
         return m_states[state];
     return null;
 }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="state"></param>
        /// <returns></returns>
        public bool CanState(FighterStateEnum state)
        {
            switch (state)
            {
                case FighterStateEnum.STATE_CARRIED:
                case FighterStateEnum.STATE_CARRIER:
                    return !HasState(FighterStateEnum.STATE_GRAVITY);
            }

            return !HasState(state);
        }
Exemplo n.º 11
0
 public BuffEffect GetBuffByState(FighterStateEnum fse)
 {
     return(myStates[fse]);
 }
Exemplo n.º 12
0
 public bool HasState(FighterStateEnum State)
 {
     return(this.myStates.ContainsKey(State));
 }