Ejemplo n.º 1
0
        private CombatScreen loadScreen(XmlNode backgroundNode)
        {
            LHGCamera camera = null;
            LHGStage  stage  = null;

            XmlNodeList childNodes = backgroundNode.ChildNodes;

            foreach (XmlNode childNode in childNodes)
            {
                switch (childNode.Name)
                {
                case "camera":
                    camera = loadCamera(childNode);
                    break;

                case "stage":
                    stage = stageFactory.loadStage(childNode);
                    break;
                }
            }

            CombatScreen screen = new CombatScreen(this.lhg, camera);

            screen.Initialize();
            screen.MyStage = stage;

            return(screen);
        }
Ejemplo n.º 2
0
        public CombatScreen screen;  // The Combat screen that is holding our board

        public CombatLocation(CombatBoard board, int i, int j)
        {
            this.board  = board;
            this.i      = i;
            this.j      = j;
            this.screen = board.MyCombatScreen;
        }
Ejemplo n.º 3
0
 public CombatHUD(LunchHourGames lhg, CombatScreen combatScreen)
     : base(lhg)
 {
     this.lhg          = lhg;
     this.combatScreen = combatScreen;
 }