Esempio n. 1
0
 public LocationSprite(LocationModel model)
     : base(KingdomRising.textures[Textures.LOCATION])
 {
     this.model = model;
     this.SetDrawPoint (model.center, this.model.size);
     Point counterPoint = new Point (this.model.center.X, this.model.center.Y + Dimensions.LOCATION_COUNTER_OFFSET);
     this.populationCounter = new CounterSprite(counterPoint);
     this.populationTimer = 0;
     this.nobles = new HashSet<NobleSprite>();
 }
Esempio n. 2
0
 public void addLocation(int id, int x, int y)
 {
     LocationModel model = new LocationModel (id, x, y);
     locations.Add (id, new LocationSprite (model));
 }