Examples of IArtikl


Examples of cz.beranek.model.herniPlan.IArtikl

   * @return
   */
  public int kupPole(Hrac hrac) {
    IPole p = HerniPlan.getPole(hrac.getPozice());
    if (p instanceof IArtikl){
      IArtikl a = (IArtikl) p;
      Hrac majitel = getSeznamMajetku().getMajitel(a);
      if (majitel != null){
        return 10;
      }
      boolean zaplaceno = hrac.zaplat(null, a.getNakupniCena());
      if (!zaplaceno) {
        return 20;
      }
      getSeznamMajetku().setMajitel(a, hrac);
      koupenyKun = true;// Nakup se tyka pole, na kterem hrac stoji, neni treba rozlisovat typ pole.
      Zpravy.odesliVsemZpravu(this,
          a.getNazevArtiklu() + " nyn� pat�� hr��i " + hrac.getNick());
    }   
    return 0;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.