예제 #1
0
        public void Execute()
        {
            String s = side.Getside();

            if (side.Equals("Left"))
            {
                enemy.moveLeft();
            }
            else if (side.Equals("Right"))
            {
                enemy.moveRight();
            }
            else if (side.Equals("Bottom"))
            {
                enemy.movedown();
            }
            else if (side.Equals("Top"))
            {
                enemy.moveUp();
            }
        }