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(); }
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(); }
public Board(LotusGame lotusGame, Player[] players) { // TODO: Complete member initialization this.lotusGame = lotusGame; this.players = players; }
static void Main(string[] args) { GraphicsFacade graphics = new GraphicsFacade(); LotusGame lotus = new LotusGame(graphics); }