Пример #1
0
 private void RefreshNodeMap(bool resetTime = false)
 {
     NodeMap.ScanFields(Level, Level.GetTilePositionFromWorld(Figure.Position));
     if (resetTime)
     {
         _refreshTimeElapsed = 0;
     }
     else
     {
         _refreshTimeElapsed -= RefreshNodeMapTime;
     }
 }
Пример #2
0
 public ComFigureController(LevelImp level)
 {
     Level   = level;
     NodeMap = new NodeMap();
     _tasks  = new Queue <ITask>();
 }
Пример #3
0
 public void DebugDraw(ShapeRenderer shapeRenderer, Vector2 offset)
 {
     NodeMap.DebugDraw(shapeRenderer, Level, offset);
 }