예제 #1
0
 public NullItem()
 {
     IsCollidable         = false;
     DestinationRectangle = new Rectangle();
     Location             = new Vector2();
     Physics      = new ItemPhysics(this);
     ShouldUpdate = false;
     BeRemoved    = false;
 }
예제 #2
0
 public Coin(Vector2 location)
 {
     Location      = location;
     Physics       = new ItemPhysics(this);
     Sprite        = ItemSpriteFactory.Instance.CreateCoin(location);
     IsCollidable  = true;
     beingProduced = false;
     isBeingDrawn  = true;
     BeRemoved     = false;
 }
예제 #3
0
 public Mushroom(Vector2 location)
 {
     Location        = location;
     Physics         = new ItemPhysics(this);
     Sprite          = ItemSpriteFactory.Instance.CreateMushroom(location);
     IsCollidable    = true;
     beingProduced   = false;
     isBeingDrawn    = true;
     BeRemoved       = false;
     productionTimer = 0;
 }