コード例 #1
0
ファイル: PromptWindow.cs プロジェクト: alenkacz/Expanze
        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>();
        }
コード例 #2
0
ファイル: Message.cs プロジェクト: alenkacz/Expanze
        private Message()
        {
            spriteBatch = GameState.spriteBatch;
            bgPos = new Vector2(0, 0);

            timeActive = ACTIVE_LIMIT;
            disabled = false;

            noPick = new PickVariables(Color.YellowGreen);

            queue = new Queue<MessageItem>();
        }
コード例 #3
0
ファイル: HexaView.cs プロジェクト: alenkacz/Expanze
        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];
            }
        }