//No parameter constructor, initializes Link to the down idle state public Link(Game1 game) { //Can change starting position later Link.game = game; position = Constant.LinkStartPosition; state = new IdleLinkDownState(this); color = Color.White; }
//No parameter constructor, initializes Link to the down idle state public DamagedLink(ILink link, Game1 game) { DamagedLink.game = game; this.link = link; state = link.State; item = link.Item; position = link.Position; timer = Constant.DamagedTime; }
public Player() { currentState = new LinkFacingSouthState(this); linkInventory = new InventoryManager(this); xPos = 30; yPos = 30; currentlyEquipped = EquippedEnum.none; link_max_health = link_health = 6; }
public void LinkTouched() { _theState = new LinkTouched(); _theState.Execute(this); }