示例#1
0
        public HeroBll(ILocationBll locationBll)
        {
            if (locationBll == null)
            {
                throw new ArgumentNullException("locationBll");
            }

            _locationBll = locationBll;
        }
        public void Init()
        {
            // TODO: Replace this with fake after real DB is conected
            _locationBll = new LocationBll(new LocationDal());
            _heroBll = new HeroBll(_locationBll);
            _hero = new Hero();

            /*
            *       Hope to get such map
            *               PUB
            *                 |
            *   SCHOOL <->  SQUARE  <-> GYM
            *                 |
            *               HOME
            */

            _home = new Location(1, "Home");
            _square = new Location(2, "Square");
            _school = new Location(3, "School");
            _pub = new Location(4, "Pub");
            _gym = new Location(5, "Gym");
        }