Inheritance: TXAScreen
Beispiel #1
0
        public void NewGameState(GameState state)
        {
            //assert CurrentScreen is always MapScreen
            MapScreen ms = screenManager.CurrentScreen as MapScreen;

            ms.UpdateGameState(state);
        }
Beispiel #2
0
 protected override void Draw(SpriteBatch batch)
 {
     if (Visible)
     {
         batch.Draw(Texture, Position, null, MapScreen.GetPlayerColor(PlayerId), Rotation, Origin, TXAGame.SCALE, SpriteEffects.None, 0f);
     }
 }