Skip to content
ldstrumpet edited this page Feb 5, 2015 · 17 revisions

###Interfaces

public class Inventory{
     // These variables are set by Unity
     public capacity;   
     public itemList;
     public currentItem;

     public void takeItem() {}
     public void removeItem() {}
     public void use() {}
     public void equip() {}
     public void move() {}
}
public class Item {
     // These variables are set by Unity
     public int MAX_DURABILITY;
     public int durability;   
     public int size;

     public void OnUse() {}
     public void decreaseDurability() {this.durability--;}
}
public class Person {
     // These variables are set by Unity
     public MAX_HEALTH;
     public currentHealth;
     public Inventory inventory;   

     public void onUpdate() {}
     public void onTime() {}
}
public class Person extends Player{
     // These variables are set by Unity
     public MAX_THIRST;
     public MAX_HUNGER;
     public MAX_STAMINA;
     public thirst;
     public hunger;
     public stamina;
     public toxicity;
     
}

Clone this wiki locally