Пример #1
0
        public LotusGame(GraphicsFacade graphics)
        {
            Console.Write("Name:");
            name = Console.ReadLine();

            me = this;
            this.graphics = graphics;

            graphics.Init();
            graphics.onUpdate += new GraphicsFacade.UpdateEventHandler(this.Update);
            graphics.onDraw += new GraphicsFacade.DrawEventHandler(this.Draw);

            title = new TitleScreen();
            currentMenu = title;

            graphics.Run();
        }
Пример #2
0
        public Board(Player[] players)
        {
            me = this;
            game = LotusGame.get();

            selectedId = int.MinValue;

            this.players = players;

            startTiles = new List<Player>[12];
            gameTiles = new List<Player>[18];
            for (int i = 0; i < startTiles.Length; i++)
                startTiles[i] = new List<Player>();
            for (int i = 0; i < gameTiles.Length; i++)
                gameTiles[i] = new List<Player>();

            startPoints = new PointF[12];
            gamePoints = new PointF[18];

            CreateBoard();
            CreateStartLocationsTable();
            CreateLocationsTable();
            resetPlayers();
        }
Пример #3
0
 public Board(LotusGame lotusGame, Player[] players)
 {
     // TODO: Complete member initialization
     this.lotusGame = lotusGame;
     this.players = players;
 }
Пример #4
0
 static void Main(string[] args)
 {
     GraphicsFacade graphics = new GraphicsFacade();
     LotusGame lotus = new LotusGame(graphics);
 }