invertika_game.Game.GameHandler.findActorNear C# (CSharp) Method

findActorNear() static private method

static private findActorNear ( Actor p, int id ) : Actor
p Actor
id int
return Actor
        static Actor findActorNear(Actor p, int id)
        {
            //MapComposite *map = p.getMap();
            //const Point &ppos = p.getPosition();
            //// See map.h for tiles constants
            //const int pixelDist = DEFAULT_TILE_LENGTH * TILES_TO_BE_NEAR;
            //for (ActorIterator i(map.getAroundPointIterator(ppos, pixelDist)); i; ++i)
            //{
            //    Actor *a = *i;
            //    if (a.getPublicID() != id)
            //        continue;
            //    return ppos.inRangeOf(a.getPosition(), pixelDist) ? a : 0;
            //}
            //return 0;

            return null; //ssk
        }