Beispiel #1
0
        public Party(params GameEntity[] members) : this(){
            foreach (GameEntity newMember in members)
                this.addMember(newMember);

            if(this.party.Count > 0)
                this.currentMember = this.party[0];
        }
Beispiel #2
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;
 }
Beispiel #3
0
 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));
     }
 }
Beispiel #4
0
 public PartyMenuItem(GameEntity e) : base(e.name, State.MenuState.EPIC_MENU_CHARACTER){
     this.charMenu = new CharacterMenu(ref e);
 }
Beispiel #5
0
 public void addMember(GameEntity newMember){
     this.party.Add(newMember);
 }
Beispiel #6
0
 public InventoryMenu(GameEntity e){
     this.refreshMenu(e);
     this.highlightedItem = 0;
 }