コード例 #1
0
 public void Update(int x, int y, int walls)
 {
     if (Location != null)
     {
         LocationHistory.Add(Location);
     }
     else
     {
         Location = new Cell();
     }
     Location.X     = x;
     Location.Y     = y;
     AvailableWalls = walls;
 }
コード例 #2
0
 public HistoryRecorder()
 {
     MessagingCenter.Subscribe <HistoryRecorder, HistoryItem>(this, LocationSubmitted,
                                                              (recorder, historyItem) => LocationHistory.Add(historyItem));
 }
コード例 #3
0
ファイル: WorldState.cs プロジェクト: muyangren499/UAVBCI
 public void MoveDrone(Vector2D location, Vector2D input, double time)
 {
     LocationHistory.Add(new HistoryItem(location, time));
     InputHistory.Add(new HistoryItem(input, time));
 }