Beispiel #1
0
        private static void RemoveContext(Mobile m)
        {
            SpecialMoveContext context = GetContext(m);

            if (context != null)
            {
                m_PlayersTable.Remove(m);

                context.Timer.Stop();
            }
        }
Beispiel #2
0
        public static bool GetContext(Mobile m, Type type)
        {
            SpecialMoveContext context = m_PlayersTable[m] as SpecialMoveContext;

            if (context == null)
            {
                return(false);
            }

            return(context.Type == type);
        }
Beispiel #3
0
        public static bool GetContext(Mobile m, Type type)
        {
            SpecialMoveContext context = null;

            m_PlayersTable.TryGetValue(m, out context);

            if (context == null)
            {
                return(false);
            }

            return(context.Type == type);
        }
Beispiel #4
0
        public static bool GetContext(Mobile m, Type type)
        {
            SpecialMoveContext context = null;

            if (m_PlayersTable.Contains(m))
            {
                context = (SpecialMoveContext)m_PlayersTable[m];
            }
            else
            {
                return(false);
            }

            return(context.Type == type);
        }
Beispiel #5
0
 private static void AddContext(Mobile m, SpecialMoveContext context)
 {
     m_PlayersTable[m] = context;
 }
Beispiel #6
0
 private static void AddContext( Mobile m, SpecialMoveContext context )
 {
     m_PlayersTable[m] = context;
 }