Esempio n. 1
0
        private PromptWindow()
        {
            spriteBatch = GameState.spriteBatch;
            bgPos = new Vector2(0, 0);
            active = false;

            noPick = new PickVariables(Color.Bisque);
            yesPick = new PickVariables(Color.Aquamarine);

            itemList = new List<PromptItem>();
            itemPick = new List<PickVariables>();
        }
Esempio n. 2
0
        private Message()
        {
            spriteBatch = GameState.spriteBatch;
            bgPos = new Vector2(0, 0);

            timeActive = ACTIVE_LIMIT;
            disabled = false;

            noPick = new PickVariables(Color.YellowGreen);

            queue = new Queue<MessageItem>();
        }
Esempio n. 3
0
        public HexaView(HexaModel model, int x, int y)
        {
            this.x = x;
            this.y = y;

            this.model = model;
            this.hexaID = model.GetID();
            this.kind = model.GetKind();
            hexaRotation = GameMaster.Inst().GetRandomInt(6);

            if (kind != HexaKind.Water)
            {
                this.pickHexaColor = new Color(1.0f - this.hexaID / 256.0f, 0.0f, 0.0f);

                pickVars = new PickVariables(pickHexaColor);

                roadView = new RoadView[(int)RoadPos.Count];
                townView = new TownView[(int)TownPos.Count];
            }
        }