Exemplo n.º 1
0
        public RankInfo(Code2015 game, Game parent, GameScene scene, GameState logic)
        {
            this.game = game;
            this.parent = parent;
            this.scene = scene;
            this.gameLogic = logic;
            this.renderSys = game.RenderSystem;

          

            FileLocation fl = FileSystem.Instance.Locate("nig_rank_bk.tex", GameFileLocs.GUI);
            rankBackground = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_home.tex", GameFileLocs.GUI);
            homeBackground = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_rank_color.tex", GameFileLocs.GUI);
            rankColor = UITextureManager.Instance.CreateInstance(fl);

            f6 = GameFontManager.Instance.FRuanEdged4;
            f8 = GameFontManager.Instance.FRuanEdged6;

           
            //for (int i = 0; i < gameLogic.LocalPlayerCount; i++)
                //players.Add(gameLogic.GetLocalPlayer(i));
        }
Exemplo n.º 2
0
 private GameFontManager(RenderSystem rs)
 {
     //f20ig1 = new GameFont("f20ig1");
     //f18g1 = new GameFont("f18g1");
     //f201 = new GameFont("f20i");
     ////f14 = new GameFont("f14");
     //f18 = new GameFont("f18");
     //fRuan4 = new GameFontRuan("font");
     //fRuan6 = new GameFontRuan("font_s");
     //fRuan8 = new GameFontRuan("font_ss");
     fRuanEdged4 = new GameFontRuan("font_edged");
     fRuanEdged6 = new GameFontRuan("font_edgeds");
     fRuanEdged8 = new GameFontRuan("font_edgedss");
 }
Exemplo n.º 3
0
 private GameFontManager(RenderSystem rs)
 {
     //f20ig1 = new GameFont("f20ig1");
     //f18g1 = new GameFont("f18g1"); 
     //f201 = new GameFont("f20i");
     ////f14 = new GameFont("f14");
     //f18 = new GameFont("f18");
     //fRuan4 = new GameFontRuan("font");
     //fRuan6 = new GameFontRuan("font_s");
     //fRuan8 = new GameFontRuan("font_ss");
     fRuanEdged4 = new GameFontRuan("font_edged");
     fRuanEdged6 = new GameFontRuan("font_edgeds");
     fRuanEdged8 = new GameFontRuan("font_edgedss");
 }
Exemplo n.º 4
0
        public Quest(Code2015 game, Game parent, GameScene scene, GameState gamelogic)
        {
            this.scene = scene;
            this.renderSys = game.RenderSystem;
            this.gameLogic = gamelogic;
            this.parent = parent;
            this.game = game;

            FileLocation fl = FileSystem.Instance.Locate("nig_quest.tex", GameFileLocs.GUI);
            background = UITextureManager.Instance.CreateInstance(fl);

            player = gamelogic.LocalHumanPlayer;

            fedge6 = GameFontManager.Instance.FRuanEdged8;
        }
Exemplo n.º 5
0
        public RBallTypeSelect(Code2015 game, Game parent, GameScene scene, GameState logic)
        {
            this.game = game;
            this.parent = parent;
            this.scene = scene;
            this.gameLogic = logic;
            this.player = parent.HumanPlayer;
            this.renderSys = game.RenderSystem;

            FileLocation fl = FileSystem.Instance.Locate("nig_icon_green.tex", GameFileLocs.GUI);
            greenBallBtn = UITextureManager.Instance.CreateInstance(fl);


            fl = FileSystem.Instance.Locate("nig_icon_edu.tex", GameFileLocs.GUI);
            educationBallBtn = UITextureManager.Instance.CreateInstance(fl);


            fl = FileSystem.Instance.Locate("nig_icon_hospital.tex", GameFileLocs.GUI);
            healthBallBtn = UITextureManager.Instance.CreateInstance(fl);



            fl = FileSystem.Instance.Locate("nig_send_ball.tex", GameFileLocs.GUI);
            background = UITextureManager.Instance.CreateInstance(fl);

            backgroundSelected = new Texture[3];
            fl = FileSystem.Instance.Locate("nig_send_ball_s1.tex", GameFileLocs.GUI);
            backgroundSelected[0] = UITextureManager.Instance.CreateInstance(fl);
            fl = FileSystem.Instance.Locate("nig_send_ball_s2.tex", GameFileLocs.GUI);
            backgroundSelected[1] = UITextureManager.Instance.CreateInstance(fl);
            fl = FileSystem.Instance.Locate("nig_send_ball_s3.tex", GameFileLocs.GUI);
            backgroundSelected[2] = UITextureManager.Instance.CreateInstance(fl);


            f8 = GameFontManager.Instance.FRuanEdged8;

            resBallsCount[0].Type = RBallType.Green;
            resBallsCount[0].count = 0;

            resBallsCount[1].Type = RBallType.Education;
            resBallsCount[1].count = 0;

            resBallsCount[2].Type = RBallType.Health;
            resBallsCount[2].count = 0;


        }
Exemplo n.º 6
0
        public NIGFail(Code2015 game, Game parent, GameScene scene, GameState gamelogic)
        {
            this.parent = parent;
            this.game = game;
            this.renderSys = game.RenderSystem;
            this.scene = scene;
            this.gameLogic = gamelogic;
         
            FileLocation fl = FileSystem.Instance.Locate("nig_fail_bg.tex", GameFileLocs.GUI);
            background = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_fail_fail.tex", GameFileLocs.GUI);
            failTex = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_result_back.tex", GameFileLocs.GUI);
            backButton = new Button();
            backButton.Image = UITextureManager.Instance.CreateInstance(fl);
            backButton.X = 450;
            backButton.Y = 530;
            backButton.Width = backButton.Image.Width;
            backButton.Height = backButton.Image.Height;
            backButton.Enabled = true;
            backButton.IsValid = true;
            backButton.MouseClick += BackButton_Click;

            fl = FileSystem.Instance.Locate("nig_result_replay.tex", GameFileLocs.GUI);
            replayButton = new Button();
            replayButton.Image = UITextureManager.Instance.CreateInstance(fl);
            replayButton.X = 738;
            replayButton.Y = 512;
            replayButton.Width = replayButton.Image.Width;
            replayButton.Height = replayButton.Image.Height;
            replayButton.Enabled = true;
            replayButton.IsValid = true;
            replayButton.MouseClick += ReplayButton_Click;

            fl = FileSystem.Instance.Locate("nig_rank_bk.tex", GameFileLocs.GUI);
            rankBackground = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_home.tex", GameFileLocs.GUI);
            homeBackground = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_rank_color.tex", GameFileLocs.GUI);
            rankColor = UITextureManager.Instance.CreateInstance(fl);

            f6 = GameFontManager.Instance.FRuanEdged4;
            f8 = GameFontManager.Instance.FRuanEdged6;


            
            fl = FileSystem.Instance.Locate("bg_black.tex", GameFileLocs.GUI);
            overlay = UITextureManager.Instance.CreateInstance(fl);
            state = NIGDialogState.Hiding;

        }
Exemplo n.º 7
0
        public CitySelectInfo(Code2015 game, Game parent, GameScene scene, GameState gamelogic)
        {
            this.scene = scene;
            this.renderSys = game.RenderSystem;
            this.player = parent.HumanPlayer;
            this.gameLogic = gamelogic;
            this.parent = parent;
            this.game = game;

            FileLocation fl = FileSystem.Instance.Locate("nig_status_bk.tex", GameFileLocs.GUI);
            statusBackground = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_status_enemyCity.tex", GameFileLocs.GUI);
            statusEnemyBackground = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_status_hp_group.tex", GameFileLocs.GUI);
            statusHPBackground = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_status_exp_bk.tex", GameFileLocs.GUI);
            statusExpBackground = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_status_hp.tex", GameFileLocs.GUI);
            statusHPTex = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_status_exp.tex", GameFileLocs.GUI);
            statusExpTex = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_exp_buff.tex", GameFileLocs.GUI);
            statusExpBuffTex = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_hp_buff.tex", GameFileLocs.GUI);
            statusHPBufferTex = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_expdown_buff.tex", GameFileLocs.GUI);
            statusExpdownBuff = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_city_hp_group.tex", GameFileLocs.GUI);
            onCityHPBackground = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_city_hp.tex", GameFileLocs.GUI);
            onCityHPTex = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_city_hp_bk.tex", GameFileLocs.GUI);
            onCityHPBase = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_icon_green.tex", GameFileLocs.GUI);
            greenBallTex = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_icon_edu.tex", GameFileLocs.GUI);
            educationBallTex = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_icon_hospital.tex", GameFileLocs.GUI);
            healthBallTex = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_status_city_produceprg.tex", GameFileLocs.GUI);
            statusProducePrgTex = UITextureManager.Instance.CreateInstance(fl);
            fl = FileSystem.Instance.Locate("nig_max_balls.tex", GameFileLocs.GUI);
            statusMaxBalls = UITextureManager.Instance.CreateInstance(fl);

            resBallsCount[0].Type = RBallType.Green;
            resBallsCount[0].count = 0;

            resBallsCount[1].Type = RBallType.Education;
            resBallsCount[1].count = 0;

            resBallsCount[2].Type = RBallType.Health;
            resBallsCount[2].count = 0;

            f8 = GameFontManager.Instance.FRuanEdged8;
            f6 = GameFontManager.Instance.FRuanEdged6;

        }
Exemplo n.º 8
0
        public ObjectSelectInfo(Code2015 game, Game parent, GameScene scene, GameState gamelogic)
        {
            this.scene = scene;
            this.renderSys = game.RenderSystem;
            this.player = parent.HumanPlayer;
            this.gameLogic = gamelogic;
            this.parent = parent;
            this.game = game;


            #region Harv
            FileLocation fl = FileSystem.Instance.Locate("nig_status_harv_bk.tex", GameFileLocs.GUI);
            statusHarvBackground = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_status_harv_hpbar_edge.tex", GameFileLocs.GUI);
            statusHPBarBarEdge = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_status_harv_hpbar_value.tex", GameFileLocs.GUI);
            statusHPBarBarValue = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_status_harv_stbar_edge.tex", GameFileLocs.GUI);
            statusSTBarBarEdge = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_status_harv_stbar_value.tex", GameFileLocs.GUI);
            statusSTBarBarValue = UITextureManager.Instance.CreateInstance(fl);

            #endregion


            fl = FileSystem.Instance.Locate("nig_status_empty.tex", GameFileLocs.GUI);
            statusEmptyBackground = UITextureManager.Instance.CreateInstance(fl);


            #region Green
            fl = FileSystem.Instance.Locate("nig_status_green_bk.tex", GameFileLocs.GUI);
            statusGreenBackground = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_status_green_bar_edge.tex", GameFileLocs.GUI);
            statusGreenBarEdge = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_status_green_bar_value.tex", GameFileLocs.GUI);
            statusGreenBarValue = UITextureManager.Instance.CreateInstance(fl);
            #endregion

            #region Oil

            fl = FileSystem.Instance.Locate("nig_status_oil_bk.tex", GameFileLocs.GUI);
            statusOilBackground = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_status_oil_bar_edge.tex", GameFileLocs.GUI);
            statusOilBarEdge = UITextureManager.Instance.CreateInstance(fl);

            fl = FileSystem.Instance.Locate("nig_status_oil_bar_value.tex", GameFileLocs.GUI);
            statusOilBarValue = UITextureManager.Instance.CreateInstance(fl);

            #endregion

            fl = FileSystem.Instance.Locate("nig_harv_hp_edge.tex", GameFileLocs.GUI);
            harvHPBorader = UITextureManager.Instance.CreateInstance(fl);
            fl = FileSystem.Instance.Locate("nig_harv_hp_value.tex", GameFileLocs.GUI);
            harvHPValue = UITextureManager.Instance.CreateInstance(fl);
            fl = FileSystem.Instance.Locate("nig_harv_hp_bg.tex", GameFileLocs.GUI);
            harvHPBarBackground = UITextureManager.Instance.CreateInstance(fl);

            f8 = GameFontManager.Instance.FRuanEdged8;
            f6 = GameFontManager.Instance.FRuanEdged6;


        }