示例#1
0
 public ThingButton(Texture2D texture, Player p, SpriteBatch sBatch, Thing t, int width, int height, int x, int y)
     : base(texture, sBatch, width, height, x, y)
 {
     owner = p;
     buttonID = t.getID();
     thingOnButton = t;
     thingOnButton.setOwned();
     owner.AddThingToRack(buttonID, t);
     thingSelected = false;
     isInPlay = false;
     originalPosition = location;
 }