Exemplo n.º 1
0
        public void ExecuteModuleForSelectSelectObject(IModule module, Func <GameSession, List <ICelestialObject> > objectsInMap)
        {
            _mode = TacticalMapMode.SelectObjects;

            _connectorsSelect = objectsInMap(_gameSession);
            //_connectorsShow = new List<ICelestialObject>();

            _mode = TacticalMapMode.SelectObjects;
        }
Exemplo n.º 2
0
        public static void DrawSelectedObject(Graphics graphics, TacticalMapMode mode, GameSession gameSession, ICelestialObject celestialObject, IEnumerable <ICelestialObject> connectorsSelect, SortedDictionary <int, GranularObjectInformation> granularTurnInformation, int turnStep, ScreenParameters screenParameters)
        {
            //var location = GetCurrentLocation(granularTurnInformation, celestialObject, turnStep, screenParameters.DrawInterval);

            //var screenCoordinates = UI.ToScreenCoordinates(screenParameters, new PointF(location.X, location.Y));

            //var rectangle = new RectangleF(screenCoordinates.X + 30, screenCoordinates.Y + 30, 100, 40);

            //graphics.FillRectangle(new SolidBrush(Color.DimGray), rectangle);
            //graphics.DrawRectangle(new Pen(Color.Gray), rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height);
            //graphics.DrawRectangle(new Pen(Color.Black), rectangle.X + 1, rectangle.Y + 1, rectangle.Width - 2, rectangle.Height - 2);
            //graphics.DrawLine(new Pen(Color.Gray), rectangle.X, rectangle.Y, screenCoordinates.X, screenCoordinates.Y);
        }
Exemplo n.º 3
0
 public void Connectors(GameSession gameSession, IModule module, IEnumerable <ICelestialObject> objects, bool show)
 {
     _connectorsShow = objects;
     //_connectorsSelect = new List<ICelestialObject>();
     _mode = TacticalMapMode.ShowObjects;
 }