示例#1
0
        public MakePlace(Point p, String name, Agent.Creature owner, Place.placeType type)
        {
            var newPlace = new Place();
            var area     = new Place.Rectangle();

            area.topLeft     = new Point(p.X, p.Y);
            area.bottomRight = new Point(p.X, p.Y);
            newPlace.area.Add(area);
            newPlace.name  = name;
            newPlace.owner = owner;
            newPlace.type  = type;
            var asociatePlace = new Places.AsociatedPlaces();

            asociatePlace.place = newPlace;
            asociatePlace.typesOfThePlace.Add(type);
            owner.asociatedPlaces.Add(asociatePlace);
        }
示例#2
0
 public MakePlace(List <Place.Rectangle> area, String name, Agent.Creature owner, Place.placeType type)
 {
 }