예제 #1
0
 public void RemoveState(FighterStateEnum State)
 {
     if (this.HasState(State))
     {
         this.myStates[State].RemoveEffect();
     }
 }
예제 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="state"></param>
 /// <returns></returns>
 public AbstractSpellBuff FindState(FighterStateEnum state)
 {
     if (HasState(state))
     {
         return(m_states[state]);
     }
     return(null);
 }
예제 #3
0
 public BuffEffect FindState(FighterStateEnum State)
 {
     if (this.HasState(State))
     {
         return(this.myStates[State]);
     }
     return(null);
 }
예제 #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>();
		}
예제 #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));
        }
예제 #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));
        }
예제 #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);
        }
예제 #11
0
 public BuffEffect GetBuffByState(FighterStateEnum fse)
 {
     return(myStates[fse]);
 }
예제 #12
0
 public bool HasState(FighterStateEnum State)
 {
     return(this.myStates.ContainsKey(State));
 }