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; }
public HistoryRecorder() { MessagingCenter.Subscribe <HistoryRecorder, HistoryItem>(this, LocationSubmitted, (recorder, historyItem) => LocationHistory.Add(historyItem)); }
public void MoveDrone(Vector2D location, Vector2D input, double time) { LocationHistory.Add(new HistoryItem(location, time)); InputHistory.Add(new HistoryItem(input, time)); }