Exemple #1
0
        public Minimap(PlanesGame game, Rectangle positionRecangle, GameWorldXna gameWorldXna)
            : base(game, positionRecangle)
        {
            m_gameWorldXna = gameWorldXna;

            m_coordinatesTransformer = new CoordinatesTransformer(gameWorldXna.GameWorld.Size, positionRecangle);
        }
Exemple #2
0
        //note: info panel position rectangle needed??
        public InfoPanel(PlanesGame game, GameWorldXna gameWorldXna)
            : base(game)
        {
            m_gameWorldXna = gameWorldXna;

            m_infoPanelItems = new List <InfoPanelItem>();

            const int panelsWidth = 200;
            const int indent      = 10;

            var minimapPosition = new Rectangle(game.Graphics.PreferredBackBufferWidth - panelsWidth - indent, indent, panelsWidth,
                                                (int)(panelsWidth / gameWorldXna.GameWorld.Size.Aspect));

            var planeInfoPosition = new Rectangle(game.Graphics.PreferredBackBufferWidth - panelsWidth - indent,
                                                  minimapPosition.Y + minimapPosition.Height + indent, panelsWidth,
                                                  game.Graphics.PreferredBackBufferHeight - 2 * indent -
                                                  minimapPosition.Y - minimapPosition.Height);

            MinimapPanel   = new Minimap(game, minimapPosition, m_gameWorldXna);
            PlaneInfoPanel = new PlaneInfoPanelItem(game, planeInfoPosition);

            m_infoPanelItems.Add(MinimapPanel);
            m_infoPanelItems.Add(PlaneInfoPanel);
        }
 public ParticlesEmitterBase(GameWorldXna world)
 {
     m_world = world;
 }
Exemple #4
0
 public SymmetricParticlesEmitter(GameWorldXna world)
     : base(world)
 {
 }