Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }