コード例 #1
0
ファイル: Game1.cs プロジェクト: emilborowiec/gridmap
        protected override void Initialize()
        {
            _map       = DemoMapFactory.CreateDemoMap(40, 40);
            _mapSprite = new GridMapSprite(_map, 32);
            _mapSprite.UpdateTexture(GraphicsDevice);

            base.Initialize();
        }
コード例 #2
0
        public Port(string name, IGridMap currentMap, int positionX, int positionY)
        {
            Name      = name;
            PositionX = positionX;
            PositionY = positionY;
            Map       = currentMap;

            _orders = new Storage <IOrder>();
            _drones = new Storage <IDroneWithPosition>();
        }
コード例 #3
0
ファイル: ShipManager.cs プロジェクト: ShiroDevC/portfolio
 /// <summary>
 ///  Constructor for the ShipManager.
 /// /// <param name="gridMap"> The GridMap for the PathFinder</param>
 /// </summary>
 public ShipManager(IGridMap gridMap, ContentManager content, IBulletFactory bulletFactory)
 {
     mPathFinder     = new PathFinder(gridMap);
     mContentManager = content;
     mBulletFactory  = bulletFactory;
 }
コード例 #4
0
 public HexGridNodePathfinding(IGridMap gridMap)
 {
     this.gridMap = gridMap;
 }
コード例 #5
0
 public GridMapSprite(IGridMap gridMap, int scale)
 {
     _gridMap = gridMap;
     _scale   = scale;
 }