Ejemplo n.º 1
0
 public NetworkingManager(BannerManager bannerManager, TileManager tileManager, AnimationManager animationManager, SpriteFont font)
 {
     timeSinceMessage      = 5.0f;
     showMessage           = IsDisconnected = false;
     this.tileManager      = tileManager;
     this.font             = font;
     this.bannerManager    = bannerManager;
     this.animationManager = animationManager;
     InitializeEvents();
 }
Ejemplo n.º 2
0
        public TileManager(ContentManager Content,BannerManager bannerManager)
        {
            gridTiles = new List<MovingEntity>();
            entities = new List<MovingEntity>();
            entityInfo = new List<EntityInfo>();
            this.bannerManager = bannerManager;
            Font = Content.Load<SpriteFont>(@"Fonts\font");
            EntityFont = Content.Load<SpriteFont>(@"Fonts\entityFont");
            spawner = new ScoreButton(Content.Load<Texture2D>(@"Textures\Buttons\Spawner"),  Content.Load<SpriteFont>(@"Fonts\largeFont"), new Vector2(10, 10), " ", 0.1f);
            TileFrameTexture = Content.Load<Texture2D>(@"Textures\TileFrame");
            TextBackground = Content.Load<Texture2D>(@"Textures\Banners\TextBackground");
            EntityFrameTexture = Content.Load<Texture2D>(@"Textures\Soldiers\EntityFrame");

            AddEntityTextures(Content);
            tileState = TileState.Free;

            deckManager = new DeckManager(Content);
        }
Ejemplo n.º 3
0
        public MenuManager(ContentManager Content, BannerManager bannerManager, NetworkingManager networkingManager)
        {
            this.bannerManager     = bannerManager;
            this.networkingManager = networkingManager;
            BackgroundTexture      = Content.Load <Texture2D>(@"menuBackground");
            mainMenu       = new MainMenu(Content);
            profile        = new Profile(Content);
            play           = new Play(Content);
            joinLobby      = new JoinLobby(Content);
            createLobby    = new CreateLobby(Content);
            about          = new About(Content);
            expansionLobby = new ExpansionLobby(Content);
            quitGame       = new QuitGame(Content);

            MenuState  = MenuStates.MainMenu;
            activeMenu = mainMenu;
            ExitGame   = false;
        }