Exemplo n.º 1
0
        public DraftingSystem(LD34Game game, SpriteBatch spriteBatch, MouseHandler mouse, WindowControl window, ContentManager content)
        {
            this.game        = game;
            this.spriteBatch = spriteBatch;
            this.mouse       = mouse;
            this.window      = window;
            this.content     = content;
            random           = new Random();
            cards            = new CardCreator[] { (ContentManager contentManager, EntityWorld world) => new GolemCard(content, world),
                                                   (ContentManager contentManager, EntityWorld world) => new ImpCard(content),
                                                   (ContentManager contentManager, EntityWorld world) => new ImpLordCard(content, world),
                                                   (ContentManager contentManager, EntityWorld world) => new ManaGolem(content, world),
                                                   (ContentManager contentManager, EntityWorld world) => new DemonFuryCard(),
                                                   (ContentManager contentManager, EntityWorld world) => new DisenchantCard(),
                                                   (ContentManager contentManager, EntityWorld world) => new FireballCard(),
                                                   (ContentManager contentManager, EntityWorld world) => new SanctuaryCard(),
                                                   (ContentManager contentManager, EntityWorld world) => new StatueCard(content, world),
                                                   (ContentManager contentManager, EntityWorld world) => new ChargeCard(),
                                                   (ContentManager contentManager, EntityWorld world) => new StormCard(),
                                                   (ContentManager contentManager, EntityWorld world) => new BlinkCard(),
                                                   (ContentManager contentManager, EntityWorld world) => new HawkCard(content),
                                                   (ContentManager contentManager, EntityWorld world) => new BearCard(content),
                                                   (ContentManager contentManager, EntityWorld world) => new SwordsmanCard(content),
                                                   (ContentManager contentManager, EntityWorld world) => new ShieldsmanCard(content),
                                                   (ContentManager contentManager, EntityWorld world) => new ImpBallCard(content),
                                                   (ContentManager contentManager, EntityWorld world) => new LionCard(content, world), };
            deck      = new List <Entity>();
            choices   = new Entity[2];
            discarded = new List <Entity>();

            // Load content.
            cardSelection = content.Load <SoundEffect>("SoundEffects/card_opening");
            help3         = content.Load <Texture2D>("Textures/help3");
        }
Exemplo n.º 2
0
        public PlayerHandSystem(LD34Game game, WindowControl window, ContentManager content, MouseHandler mouse, List <Card> deck)
            : base(content, new Vector2(window.Width / LD34Game.Scale, window.Height / LD34Game.Scale - 64f), true, true, deck)
        {
            this.game   = game;
            this.window = window;
            this.mouse  = mouse;

            // Load content.
            growIcon = content.Load <Texture2D>("Textures/grow_icon");
            playIcon = content.Load <Texture2D>("Textures/play_icon");
        }
Exemplo n.º 3
0
 public MenuSystem(LD34Game game, SpriteBatch spriteBatch, MouseHandler mouse, WindowControl window, ContentManager content)
 {
     this.game        = game;
     this.spriteBatch = spriteBatch;
     this.content     = content;
     this.mouse       = mouse;
     this.window      = window;
     title            = content.Load <Texture2D>("Textures/title");
     help             = content.Load <Texture2D>("Textures/help");
     help2            = content.Load <Texture2D>("Textures/help2");
     bigHelp          = content.Load <Texture2D>("Textures/big_help");
     growIcon         = content.Load <Texture2D>("Textures/grow_icon");
     playIcon         = content.Load <Texture2D>("Textures/play_icon");
     cardOpening      = content.Load <SoundEffect>("SoundEffects/card_opening");
     grow             = content.Load <SoundEffect>("SoundEffects/grow");
     cardSelection    = content.Load <SoundEffect>("SoundEffects/card_selection");
     choice           = Choice.None;
     cards            = new List <Entity>();
 }