示例#1
0
 //Constructor
 public GameCard(SettlersOfCatan game , PlayingState state)
 {
     OurGame = (SettlersOfCatan)game;
     playingState = (PlayingState)state;
     //Randomize the deck
     randomGameCard();
 }
示例#2
0
        public LongestRoad(SettlersOfCatan game, PlayingState state)
        {
            OurGame = (SettlersOfCatan)game;
            playingState = (PlayingState)state;
            roadBoard= OurGame.gameBoard;

            leftTotal = 0;
            rightTotal = 0;
        }
 //Constructor
 public DrawGameBoard2D(Game game, PlayingState state)
     : base(game)
 {
     ourGame = (SettlersOfCatan)game;
     playingState = (PlayingState)state;
     screenWidth = ourGame.width;
     screenHeight = ourGame.height;
     halfWidth = screenWidth / 2;
     halfHeight = screenHeight / 2;
     screenRectangle = new Rectangle(0, 0, screenWidth, screenHeight);
 }
示例#4
0
        public DrawHud(Game game, PlayingState state)
            : base(game)
        {
            screenWidth = OurGame.width;
            screenHeight = OurGame.height;

            playingState = (PlayingState)state;
        }