public void AddMoveEntry(Guid id, int distance, string text) { if (!this.fActive) { return; } MoveLogEntry moveLogEntry = new MoveLogEntry() { CombatantID = id, Distance = distance, Details = text }; this.fEntries.Add(moveLogEntry); }
public int Movement() { int distance = 0; foreach (IEncounterLogEntry fEntry in this.fEntries) { MoveLogEntry moveLogEntry = fEntry as MoveLogEntry; if (moveLogEntry == null || moveLogEntry.Distance <= 0) { continue; } distance += moveLogEntry.Distance; } return(distance); }