public Party(params GameEntity[] members) : this(){ foreach (GameEntity newMember in members) this.addMember(newMember); if(this.party.Count > 0) this.currentMember = this.party[0]; }
public CharacterMenu(ref GameEntity e) : base(e.name, new MenuItem("Inventory", State.MenuState.EPIC_MENU_CHARACTER_INVENTORY), new MenuItem("Abilities", State.MenuState.NULL), new MenuItem("Back", State.MenuState.EPIC_MENU_PARTY) ) { this.character = e; }
public void refreshMenu(GameEntity e) { //if(this.entity != e){ if(e != null){ this.entity = e; this.title = this.entity.name + "'s Inventory"; List<Item> items = ((InventoryComponent)this.entity.getComponent(State.ComponentType.INVENTORY)).inventory; this.menuItems = new List<MenuItem>(); foreach (Item i in items) { this.menuItems.Add(new ItemMenuItem(i)); } this.menuItems.Add(new MenuItem("Back", State.MenuState.EPIC_MENU_CHARACTER)); } }
public PartyMenuItem(GameEntity e) : base(e.name, State.MenuState.EPIC_MENU_CHARACTER){ this.charMenu = new CharacterMenu(ref e); }
public void addMember(GameEntity newMember){ this.party.Add(newMember); }
public InventoryMenu(GameEntity e){ this.refreshMenu(e); this.highlightedItem = 0; }