示例#1
0
 //copy constructor
 public Usables(Usables u, Vector2 p)
 {
     //u.MemberwiseClone();
     texture        = u.texture;
     name           = u.name;
     ideedname      = u.ideedname;
     weight         = u.weight;
     price          = u.price;
     isShopItem     = u.isShopItem;
     modifyByAmount = u.modifyByAmount;
     propToAffect   = u.propToAffect;
     methodToInvoke = u.methodToInvoke;
     alteredState   = u.alteredState;
     effectString   = u.effectString;
     startingPos    = p;
     tint           = u.tint;
     //paramArray = u.paramArray;
 }
示例#2
0
 public Scroll(Usables u, Vector2 p)
     : base(u, p)
 {
 }
示例#3
0
 public Potion(Usables u, Vector2 p)
     : base(u, p)
 {
 }
示例#4
0
 public Food(Usables u, Vector2 p) : base(u, p)
 {
     //fullnessRestored = modifyByAmount;
 }