public FlowerEntity(ItemFactory factory, Vector2 position) : base(factory) { item = (Flower)spriteFactory.getSprite((int)itemTypes.FIREFLOWER); Velocity = Vector2.Zero; ItemSM = new ItemStateMachine(this); ActiveTransition(); }
public MushroomEntity(ItemFactory factory, Vector2 position) : base(factory) { item = (Mushroom)spriteFactory.getSprite((int)itemTypes.SUPERSHROOM); item.Position = position; item.Velocity = Vector2.Zero; item.Acceleration = Vector2.Zero; ItemSM = new ItemStateMachine(this); ActiveTransition(); }
public StarEntity(ItemFactory factory, Vector2 position) : base(factory) { item = (Star)spriteFactory.getSprite((int)itemTypes.ITEMSTAR); item.Position = position; Velocity = Vector2.Zero; item.Velocity = Velocity; ItemSM = new ItemStateMachine(this); ActiveTransition(); }
public CoinEntity(ItemFactory factory, Vector2 position) : base(factory) { item = (Coin)spriteFactory.getSprite((int)itemTypes.COINS); item.Position = position; item.Velocity = Vector2.Zero; ItemSM = new ItemStateMachine(this); ActiveTransition(); HUD.CoinTracker.Subscribe(this); HUD.PointTracker.Subscribe(this); }
protected AbstractItemState(ItemStateMachine sm, ItemEntity itemEnt) { StateMachine = sm; Item = itemEnt; }
public ActiveItemState(ItemStateMachine sm, ItemEntity item) : base(sm, item) { }
public EmergingItemState(ItemStateMachine sm, ItemEntity item) : base(sm, item) { }