Beispiel #1
0
 public abstract bool IsInReach(AdventureEntity combatant);
 public void Remove(AdventureEntity entitiy)
 {
     Entities.Remove(entitiy);
 }
Beispiel #3
0
 public abstract bool CanSee(AdventureEntity combatant);
 public void Add(AdventureEntity entitiy)
 {
     Entities.Add(entitiy);
 }
Beispiel #5
0
 public static AdventureLog Info(Combatant entity, AdventureEntity target, ActivityLog activityLog)
 {
     return(new AdventureLog(LogType.Info, entity.AdventureEntityId, entity.Coordinate, entity.FovCoords, activityLog: activityLog));
 }
Beispiel #6
0
 public static AdventureLog Attacked(Combatant entity, AdventureEntity target)
 {
     return(new AdventureLog(LogType.Attack, entity.AdventureEntityId, entity.Coordinate, entity.FovCoords, target.AdventureEntityId, target.Coordinate));
 }
Beispiel #7
0
 public static AdventureLog EntityRemoved(AdventureEntity entity)
 {
     return(new AdventureLog(LogType.Entity, entity.AdventureEntityId, entity.Coordinate, flag: false));
 }
Beispiel #8
0
 public static AdventureLog EntityCreated(AdventureEntity entity)
 {
     return(new AdventureLog(LogType.Entity, entity.AdventureEntityId, entity.Coordinate, entity is Combatant combatant ? combatant.FovCoords : null));
 }