Exemplo n.º 1
0
 /// <summary>
 /// konstruktor tworzacy ucieczke
 /// </summary>
 /// <param name="owner">Postac, ktora ma uciekac</param>
 /// <param name="map">Mapa na ktorej odbywa sie gra</param>
 /// <param name="colonosts">Kolonia</param>
 /// <param name="besigers">Oblegajacy</param>
 public FleeJob(Men owner, Map.Map map, Colony colonosts, Besiegers besigers)
 {
     owner_     = owner;
     colonosts_ = colonosts;
     besigers_  = besigers;
     map_       = map;
 }
Exemplo n.º 2
0
        public void AddColonist(Men colonist)
        {
            colonists_.Add(colonist);
            colonist.Colony = this;

            map_.UpdateTime += colonist.UpdateTime;
            window_.KeyPressed += colonist.Window_KeyPressed;
            window_.KeyReleased += colonist.Window_KeyReleased;
            window_.MouseButtonPressed += colonist.Window_MouseButtonPressed;
            window_.MouseButtonReleased += colonist.Window_MouseButtonReleased;
        }
Exemplo n.º 3
0
 /// <summary>
 /// Konstruktor tworzacy prace
 /// </summary>
 /// <param name="owner">Wlasciciel, ktory bedzie odpoczywac</param>
 public RestJob(Men owner)
 {
     owner_ = owner;
     State  = Status.Planned;
 }
 /// <summary>
 /// Konstruktor pracy
 /// </summary>
 /// <param name="owner">Postać, ktora ma być atakowana</param>
 public AttackJob(Men owner)
 {
     owner_ = owner;
 }