/// <summary> /// Constructors a new sprite. /// </summary> public PickUpItem(string filePath, string p_ItemType, Vector2 p_Point) { sprite = new Sprite(GV.ContentManager, filePath); Sprite.Scale = 0.40f; Position = p_Point; itemType = p_ItemType; state = new ActiveState(this); active = true; }
/// <summary> /// Constructor /// </summary> /// <param name="state"></param> public InActiveState(PickUpState state) : this(state.PickUpItem) { }