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

findCharacterNear() static private method

static private findCharacterNear ( Actor p, int id ) : Character
p Actor
id int
return Character
        static Character findCharacterNear(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 (CharacterIterator i(map.getAroundPointIterator(ppos,
            //                                                     pixelDist)); i; ++i)
            //{
            //    Character *c = *i;
            //    if (c.getPublicID() != id)
            //        continue;
            //    return ppos.inRangeOf(c.getPosition(), pixelDist) ? c : 0;
            //}
            //return 0;

            return null; //ssk
        }