public void NewGameState(GameState state) { //assert CurrentScreen is always MapScreen MapScreen ms = screenManager.CurrentScreen as MapScreen; ms.UpdateGameState(state); }
protected override void Draw(SpriteBatch batch) { if (Visible) { batch.Draw(Texture, Position, null, MapScreen.GetPlayerColor(PlayerId), Rotation, Origin, TXAGame.SCALE, SpriteEffects.None, 0f); } }