root/src/BRAINSFramework/Map/Grid.cs
| 13 | 23 | ||
|---|---|---|---|
4 | using System.Text; | 4 | using System.Text; |
5 | using Microsoft.Xna.Framework; | 5 | using Microsoft.Xna.Framework; |
6 | using Microsoft.Xna.Framework.Graphics; | 6 | using Microsoft.Xna.Framework.Graphics; |
7 | using Brains.Framework.PathFinding; | ||
8 | using Brains.Framework.Behaviors.PathFinding; | ||
7 | 9 | ||
8 | namespace Brains.Framework.Map | 10 | namespace Brains.Framework.Map |
9 | { | 11 | { |
... | ... | ||
12 | /// </summary> | 14 | /// </summary> |
13 | public class Grid | 15 | public class Grid |
14 | { | 16 | { |
17 | public List<PreStoredPath> PredeterminedPaths = new List<PreStoredPath>(); | ||
18 | |||
15 | private int _cols; | 19 | private int _cols; |
16 | private int _rows; | 20 | private int _rows; |
17 | private List<GridCell> _cells; | 21 | private List<GridCell> _cells; |
... | ... | ||
39 | /// </summary> | 43 | /// </summary> |
40 | public Vector2 Center | 44 | public Vector2 Center |
41 | { | 45 | { |
42 | get { return Position; } | 46 | get { return Position+(Size/2); } |
43 | } | 47 | } |
44 | 48 | ||
45 | /// <summary> | 49 | /// <summary> |
Download diff