public ShotManager(PlayerManager p, WorldMap map) { DefaultShotPathGenerator = this; PlayerList = p; Map = map; }
protected ShotPath GetShotPath(Shot shot) { ShotPathGenerator gen = DefaultShotPathGenerator; if (PathGenerators.ContainsKey(shot.Flag)) { gen = PathGenerators[shot.Flag]; } if (gen == null) { return(ShotPath.Empty); } return(gen.GetShotPath(shot, shot.Owner, Map)); }