Esempio n. 1
0
        public static int GetDistance(int r1, int x1, int y1, int z1, int r2, int x2, int y2, int z2)
        {
            GameLocation loc1 = new GameLocation("loc1", (ushort)r1, x1, y1, z1);
            GameLocation loc2 = new GameLocation("loc2", (ushort)r2, x2, y2, z2);

            return(loc1.GetDistance(loc2));
        }
Esempio n. 2
0
        public static float GetDistance(ushort r1, float x1, float y1, float z1, ushort r2, float x2, float y2, float z2)
        {
            GameLocation loc1 = new GameLocation("loc1", r1, x1, y1, z1);
            GameLocation loc2 = new GameLocation("loc2", r2, x2, y2, z2);

            return(loc1.GetDistance(loc2));
        }
Esempio n. 3
0
        public static int GetDistance( int r1, int x1, int y1, int z1, int r2, int x2, int y2, int z2 )
        {
            GameLocation loc1 = new GameLocation( "loc1", (ushort)r1, x1, y1, z1 );
            GameLocation loc2 = new GameLocation( "loc2", (ushort)r2, x2, y2, z2 );

            return loc1.GetDistance( loc2 );
        }