Beispiel #1
0
        //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;
        }
Beispiel #2
0
 //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;
 }
Beispiel #3
0
        public Player()
        {
            currentState  = new LinkFacingSouthState(this);
            linkInventory = new InventoryManager(this);
            xPos          = 30;
            yPos          = 30;

            currentlyEquipped = EquippedEnum.none;
            link_max_health   = link_health = 6;
        }
Beispiel #4
0
 public void LinkTouched()
 {
     _theState = new LinkTouched();
     _theState.Execute(this);
 }