コード例 #1
0
ファイル: AreaRunnerBase.cs プロジェクト: cout00/poebot
 void AddToHistory <T>(List <HistoryElement <T> > history, HistoryElement <T> historyElement) where T : MoveInfoBase
 {
     if (history.Count > MAX_HISTORY_LENGTH)
     {
         history.Remove(history.Last());
     }
     else
     {
         historyElement.ID += 1;
         history.Add(historyElement);
     }
 }
コード例 #2
0
ファイル: AreaRunnerBase.cs プロジェクト: cout00/poebot
 void AddToFogHistory(HistoryElement <MapDirectionMoveInfo> historyElement)
 {
     AddToHistory(fogHistory, historyElement);
 }
コード例 #3
0
ファイル: AreaRunnerBase.cs プロジェクト: cout00/poebot
 public new void Add(HistoryElement <TMapInfo> historyElement)
 {
     historyElement.ID = ID;
     ID++;
     Add(historyElement);
 }
コード例 #4
0
ファイル: AreaRunnerBase.cs プロジェクト: cout00/poebot
 void AddToMapHistory(HistoryElement <MapMoveInfo> historyElement)
 {
     AddToHistory(mapHistory, historyElement);
 }