public MapDrawer(GameXXX game) { this.game = game; this.baseCanvas = CreateBaseCanvas(); this.game.Root.Children.Add(baseCanvas); this.emptyBrush = new SolidColorBrush(emptyColor); this.strokeBrush = new SolidColorBrush(strokeColor); }
public Graphic(GameXXX game) { this.game = game; this.canvasImage = new Image(); game.Root.Children.Add(canvasImage); }
public Map(GameXXX game) { this.game = game; this.random = game.SyncRandom; gridDatas = new int[RowNum][]; for (int i = 0; i < gridDatas.Length; i++) { gridDatas[i] = new int[ColumnNum]; } }
public LoadingScene(GameXXX game) { this.game = game; this.loandingText = new TextBlock(); this.loandingText.Inlines.Add("Now Loading..."); this.loandingText.FontSize = 40; this.loandingText.TextAlignment = TextAlignment.Center; var x = game.CenterX - loandingText.ActualWidth / 2; var y = game.CenterY - loandingText.ActualHeight / 2; this.loandingText.SetValue(Canvas.LeftProperty, x); this.loandingText.SetValue(Canvas.TopProperty, y); }
private void Application_Startup(object sender, StartupEventArgs e) { var mainPage = new MainPage(); this.RootVisual = mainPage; var logTextBlock = new TextBlock(); mainPage.LayoutRoot.Children.Add(logTextBlock); MyLog.LogTextBlock = logTextBlock; MyLog.LogTextBlock.IsHitTestVisible = false; MyLog.LogTextBlock.SetValue(Canvas.ZIndexProperty, 100); MyLog.OutputLevel = 10; this.gameXXX = new GameXXX(mainPage.LayoutRoot); this.gameXXX.Initialize(); }
public NetworkController(GameXXX game, NetworkManager network) { this.game = game; this.network = network; }
public GameScene(GameXXX game) { this.game = game; this.mapClickController = new MapClickController(); }
public TitleScene(GameXXX game) { this.game = game; this.graphic = game.Graphic; }