Beispiel #1
0
 private static string cloudLine(string cloudType, Cloud cloud)
 {
     string x = ToInvariantString(cloud.position.X);
     string y = ToInvariantString(cloud.position.Y);
     string vx = ToInvariantString(cloud.velocity.X);
     string vy = ToInvariantString(cloud.velocity.Y);
     string vapor = ToInvariantString(cloud.vapor);
     return string.Join(" ", cloudType, x, y, vx, vy, vapor);
 }
Beispiel #2
0
 public bool Intersects(Cloud b)
 {
     return (b.position - position).Length < b.Radius + Radius;
 }