public GreenMushroom(Vector2 location) { ItemPhysics = new ItemPhysicalProperty(this, true); Location = location; sprite = ItemFactory.Instance.CreateGreenMushroomSprite(); HaveCollision = false; }
public Flower(Vector2 location) { Location = location; sprite = ItemFactory.Instance.CreateFlowerSprite(); HaveCollision = false; ItemPhysics = new ItemPhysicalProperty(this, true); }
public Star(Vector2 location) { ItemPhysics = new ItemPhysicalProperty(this, false); Location = location; sprite = ItemFactory.Instance.CreateStarSprite(); HaveCollision = false; isCollied = false; }
public Gold(Vector2 location, bool isStatic) { this.isStatic = isStatic; Location = location; //if (!isStatic) //{ ItemPhysics = new ItemPhysicalProperty(this, false); //} sprite = ItemFactory.Instance.CreateGoldSprite(); HaveCollision = false; }