예제 #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);
 }
예제 #2
0
파일: Cloud.cs 프로젝트: henrikno/CloudWars
 public bool Intersects(Cloud b)
 {
     return (b.position - position).Length < b.Radius + Radius;
 }