Exemplo n.º 1
0
 // constructor = all item parameter
 public Item(string _id, string _name, int _price, float _makeTime, Item[] _recipe, int[] _recipeCount, bool _onDisplay, float _storeExp, Store.StoreType _type)
 {
     id          = _id;
     name        = _name;
     price       = _price;
     makeTime    = _makeTime;
     recipe      = _recipe;
     recipeCount = _recipeCount;
     onSell      = _onDisplay;
     storeExp    = _storeExp;
     type        = _type;
 }
Exemplo n.º 2
0
 public Item(Item data)
 {
     id          = data.id;
     name        = data.name;
     price       = data.price;
     makeTime    = data.makeTime;
     recipe      = data.recipe;
     recipeCount = data.recipeCount;
     onSell      = data.onSell;
     storeExp    = data.storeExp;
     type        = data.type;
 }
Exemplo n.º 3
0
 // constructor - no parameter
 public Item()
 {
     id       = "0000";
     name     = null;
     price    = 0;
     makeTime = 0f;
     recipe   = null;
     recipe   = null;
     onSell   = false;
     storeExp = 0;
     type     = Store.StoreType.Bakery;
 }