public SettlementTest() { playerManager = new PlayerManager(); drawManager = new DrawManager(playerManager); drawDate = DateTime.Now; drawManager.CreateDraw(drawDate); }
public override void Draw(IDrawManager drawManager) { if (NormalStyle != null) drawManager.Draw(NormalStyle, Rectangle); drawManager.DrawText(Text, Rectangle, TextStyle); }
public TicketPurchaseFixture(IPlayerManager pm, IDrawManager dm, DateTime drawDate) { _drawManager = dm; _playerManager = pm; _drawDate = drawDate; }
public override void Draw(IDrawManager drawManager) { foreach (var control in GetControls()) { control.Draw(drawManager); } }
public override void Draw(IDrawManager drawManager) { int y = Y; foreach (var item in Items) { item.X = X; item.Y = y; item.Width = Width; item.Height = ItemHeight; var style = ItemStyle; if (SelectedItemStyle != null && item == SelectedItem) { style = SelectedItemStyle; } else { if (HoveredItemStyle != null && item == HoveredItem) { style = HoveredItemStyle; } else { style = ItemStyle; } } style.Draw(drawManager, item); ItemTextStyle.Draw(drawManager, item.Text, item); y += ItemHeight; } }
public override void Draw(IDrawManager drawManager) { if(NormalStyle != null) NormalStyle.Draw(drawManager, this); TextStyle.Draw(drawManager, Text, this); }
public void Draw(IDrawManager drawManager, string text, IRectangle destinationRectangle) { if (!string.IsNullOrEmpty(text)) { drawManager.DrawText(text, destinationRectangle, this); } }
public SettlementTest() { playerManager = new PlayerManager(); drawManager = new DrawManager(playerManager); drawDate = DateTime.Now; drawManager.CreateDraw(drawDate); }
public override void Draw(IDrawManager drawManager) { var style = GetCurrentStyle(); style.Draw(drawManager, this); TextStyle.Draw(drawManager, Text, this); }
public GuiSystem(IDrawManager drawManager, IInputManager inputManager, int virtualScreenWidth = 800, int virtualScreenHeight = 480) { VirtualScreenWidth = virtualScreenWidth; VirtualScreenHeight = virtualScreenHeight; _drawManager = drawManager; _inputManager = inputManager; }
public override void Draw(IDrawManager drawManager) { if (NormalStyle != null) { NormalStyle.Draw(drawManager, this); } TextStyle.Draw(drawManager, Text, this); }
public Engine(Snake snake, IDrawManager drawManager, Coordinate boardCoordinate) { Snake = snake; DrawManager = drawManager; BoardCoordinate = boardCoordinate; InitializeBoard(); Food = FoodFactory.Create(); Score = 0; }
public GameScene(ISnake snake, IDrawManager drawManager, IFoodFactory foodFactory, IBorder border, IScoreBoard scoreBoard, IScene pauseScene, IScene gameOverScene) { this.snake = snake; this.drawManager = drawManager; this.foodFactory = foodFactory; this.border = border; this.scoreBoard = scoreBoard; this.pauseScene = pauseScene; this.gameOverScene = gameOverScene; this.spawnedFood = null; this.GameSpeed = GameMinSpeed; }
public override void Draw(IDrawManager drawManager) { drawManager.StartBatch(); if (Background != null) { drawManager.Draw(Background, this); } base.Draw(drawManager); drawManager.EndBatch(); }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); // Load your game content here MonoGameAssetLoadService.Instance.LoadAssets(Content); drawManager = new DrawManager(new MonoGameDrawStrategy(spriteBatch, graphics, Content, inputAdapter)); drawVisitor = new DefaultDrawVisitor(drawManager); // Goto main screen screenNavigator.OpenScreen(ScreenFactory.MAIN_SCREEN); }
public override void Draw(IDrawManager drawManager, IRectangle destinationRectangle) { var border = new Border(destinationRectangle, BorderThickness); drawManager.Draw(TopLeftRegion, ToRect(border.TopLeft)); drawManager.Draw(TopRegion, ToRect(border.Top)); drawManager.Draw(TopRightRegion, ToRect(border.TopRight)); drawManager.Draw(LeftRegion, ToRect(border.Left)); drawManager.Draw(CentreRegion, ToRect(border.Centre)); drawManager.Draw(RightRegion, ToRect(border.Right)); drawManager.Draw(BottomLeftRegion, ToRect(border.BottomLeft)); drawManager.Draw(BottomRegion, ToRect(border.Bottom)); drawManager.Draw(BottomRightRegion, ToRect(border.BottomRight)); }
public override void Draw(IDrawManager drawManager, IRectangle destinationRectangle) { var border = new Border(destinationRectangle, BorderThickness); drawManager.Draw(TopLeftRegion, ToRect(border.TopLeft)); drawManager.Draw(TopRegion, ToRect(border.Top)); drawManager.Draw(TopRightRegion, ToRect(border.TopRight)); drawManager.Draw(LeftRegion, ToRect(border.Left)); drawManager.Draw(CentreRegion, ToRect(border.Centre)); drawManager.Draw(RightRegion, ToRect(border.Right)); drawManager.Draw(BottomLeftRegion, ToRect(border.BottomLeft)); drawManager.Draw(BottomRegion, ToRect(border.Bottom)); drawManager.Draw(BottomRightRegion, ToRect(border.BottomRight)); }
public PlayButton( IPoint topLeftPoint, IPoint defaultSnakePoint, IDrawManager drawManager, IFoodFactory foodFactory, IBorder border, IScene pauseScene, IScene gameOverScene) : base(topLeftPoint, ButtonText) { this.defaultSnakePoint = defaultSnakePoint; this.drawManager = drawManager; this.foodFactory = foodFactory; this.border = border; this.pauseScene = pauseScene; this.gameOverScene = gameOverScene; }
public ConsoleDrawer( IDrawManager drawManager, IKeyboardManager keyboardManager, IPhraseProvider phraseProvider, IObjectDrawer canvasDrawer, IObjectDrawer dotDarwer, IObjectDrawer verticalLineDrawer, IObjectDrawer horizontalLineDrawer, IObjectDrawer gooseDrawer, IBoard board) { this.drawManager = drawManager; this.keyboardManager = keyboardManager; this.phraseProvider = phraseProvider; this.canvasDrawer = canvasDrawer; this.dotDrawer = dotDarwer; this.verticalLineDrawer = verticalLineDrawer; this.horizontalLineDrawer = horizontalLineDrawer; this.gooseDrawer = gooseDrawer; this.board = board; }
public GooseDrawer(IDrawManager drawManager) { this.drawManager = drawManager; }
public void Draw(IDrawManager drawManager, string text, IRectangle destinationRectangle) { if(!string.IsNullOrEmpty(text)) drawManager.DrawText(text, destinationRectangle, this); }
public virtual void Draw(IDrawManager drawManager, IRectangle destinationRectangle) { drawManager.Draw(this, destinationRectangle); }
public ReviewTickets() { _playerManager = new PlayerManager(); _drawManager = new DrawManager(_playerManager); }
public ReviewTicketsWithRowFixture() { _playerManager = new PlayerManager(); _drawManager = new DrawManager(_playerManager); }
public DefaultDrawVisitor(IDrawManager drawManager) { this.drawManager = drawManager; }
public StartMenuScene(IDrawManager drawManager, params IButton[] buttons) { this.index = 0; this.buttons = buttons; this.drawManager = drawManager; }
public override void Draw(IDrawManager drawManager) { throw new NotImplementedException(); }
public CanvasDrawer(IDrawManager drawManager) { this.drawManager = drawManager; }
public ReviewTickets() { _playerManager = new PlayerManager(); _drawManager = new DrawManager(_playerManager); }
public InfoScene(IDrawManager drawManager) { this.drawManager = drawManager; }
public override void Draw(IDrawManager drawManager) { NormalStyle.Draw(drawManager, this); }
public SetUpTestEnvironment() { playerManager = new PlayerManager(); drawManager = new DrawManager(playerManager); }
public ReviewTicketsWithRowFixture() { _playerManager = new PlayerManager(); _drawManager = new DrawManager(_playerManager); }
public SetUpTestEnvironment() { playerManager = new PlayerManager(); drawManager = new DrawManager(playerManager); }
public abstract void Draw(IDrawManager drawManager);
public VerticalLineDrawer(IDrawManager drawManager, int xOffsetPercent) { this.drawManager = drawManager; this.xOffsetPercent = xOffsetPercent; }
public TicketPurchaseFixture(IPlayerManager pm, IDrawManager dm, DateTime drawDate) { _drawManager = dm; _playerManager = pm; _drawDate = drawDate; }
public abstract void Draw(IDrawManager drawManager);
public override void Draw(IDrawManager drawManager) { throw new NotImplementedException(); }
public override void Draw(IDrawManager drawManager) { drawManager.Draw(NormalStyle, Rectangle); }
public override void Draw(IDrawManager drawManager) { NormalStyle.Draw(drawManager, this); }
public override void Draw(IDrawManager drawManager) { var style = GetCurrentStyle(); style.Draw(drawManager, this); TextStyle.Draw(drawManager, Text, this); }
public override void Draw(IDrawManager drawManager) { int y = Y; foreach(var item in Items) { item.X = X; item.Y = y; item.Width = Width; item.Height = ItemHeight; var style = ItemStyle; if(SelectedItemStyle != null && item == SelectedItem) { style = SelectedItemStyle; } else { if(HoveredItemStyle != null && item == HoveredItem) style = HoveredItemStyle; else style = ItemStyle; } style.Draw(drawManager, item); ItemTextStyle.Draw(drawManager, item.Text, item); y += ItemHeight; } }
public DotDrawer(IDrawManager drawManager, int dotXOffsetPercent, int dotYOffsetPercent) { this.drawManager = drawManager; this.xOffsetPercent = dotXOffsetPercent; this.yOffsetPercent = dotYOffsetPercent; }
public PauseScene(IDrawManager drawManager) { this.drawManager = drawManager; }
public GameController(IDrawManager drawManager, IPlayer playerOne, IPlayer playerTwo, IBoard board) { playerController = new PlayerController(playerOne, playerTwo); this.board = board; this.drawManager = drawManager; }
public HorizontalLineDrawer(IDrawManager drawManager, int yOffsetPercent) { this.drawManager = drawManager; this.yOffsetPercent = yOffsetPercent; }
public override void Draw(IDrawManager drawManager) { var style = GetCurrentStyle(); drawManager.Draw(style, Rectangle); drawManager.DrawText(Text, Rectangle, TextStyle); }