예제 #1
0
        public static AlienState GetState(AlienMan.State state)
        {
            //ensure call Create() first
            AlienMan pMan = AlienMan.GetInstance();

            Debug.Assert(pMan != null);

            AlienState pAlienState = null;

            switch (state)
            {
            case AlienMan.State.Ready:
                pAlienState = pMan.pStateReady;
                break;

            case AlienMan.State.BombDroping:
                pAlienState = pMan.pStateBombDroping;
                break;

            default:
                Debug.Assert(false);
                break;
            }

            return(pAlienState);
        }