Beispiel #1
0
 public bool IsInAccess(AbstractArea area)
 {
     if ((area.Y >= Start.Y && area.Y <= End.Y) &&
         area.X >= Start.X && area.Y < End.X)
     {
         return(true);
     }
     return(false);
 }
Beispiel #2
0
 public static int GetDistance(AbstractArea a, AbstractArea b)
 {
     return((int)Math.Round(Math.Sqrt(Math.Pow(b.X - a.X, 2) + Math.Pow(b.Y - a.Y, 2))));
 }
Beispiel #3
0
 public virtual void MoveCharacter(AbstractCharacter character, AbstractArea source, AbstractArea destination)
 {
 }
Beispiel #4
0
 public AbstractAccess(AbstractArea start, AbstractArea end)
 {
     this.Start = start;
     this.End   = end;
 }
Beispiel #5
0
 public void AddArea(AbstractArea area)
 {
     this.Position = area;
     area.AddEnvironment(this);
 }