Example #1
0
 public Objekat(int x, int y, VrstaObjekta vrsta, string naziv, int ocena)
 {
     this.x     = x;
     this.y     = y;
     this.vrsta = vrsta;
     this.ocena = ocena;
     this.naziv = naziv;
 }
Example #2
0
 public Objekat(int x, int y, VrstaObjekta vrsta, string naziv)
 {
     this.x     = x;
     this.y     = y;
     this.vrsta = vrsta;
     ocena      = Default.Ocena;
     this.naziv = naziv;
 }
Example #3
0
 public Objekat(string naziv)
 {
     x          = Default.X;
     y          = Default.Y;
     vrsta      = Default.Vrsta;
     ocena      = Default.Ocena;
     this.naziv = naziv;
 }
Example #4
0
 public Objekat(VrstaObjekta vrsta)
 {
     x          = Default.X;
     y          = Default.Y;
     this.vrsta = vrsta;
     ocena      = Default.Ocena;
     naziv      = Default.Naziv;
 }
Example #5
0
 public Objekat(int x, int y)
 {
     this.x = x;
     this.y = y;
     vrsta  = Default.Vrsta;
     ocena  = Default.Ocena;
     naziv  = Default.Naziv;
 }
Example #6
0
 public Objekat()
 {
     x     = Default.X;
     y     = Default.Y;
     vrsta = Default.Vrsta;
     ocena = Default.Ocena;
     naziv = Default.Naziv;
 }
Example #7
0
 public static string StringOf(VrstaObjekta obj)
 {
     try
     {
         return(Strings[obj]);
     }
     catch
     {
         throw new ArgumentException();
     }
 }