-
Notifications
You must be signed in to change notification settings - Fork 0
Scripts
gitNate edited this page Feb 5, 2015
·
17 revisions
###Interfaces
public class Storage{
// These variables are set by Unity
public capacity;
public itemList;
public currentItem;
public void takeItem() {}
public void removeItem() {}
public void moveItem() {}
}public class Inventory: Storage{
// These variables are set by Unity
public void use() {}
public void equip() {}
}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 Player: Person{
// These variables are set by Unity
public MAX_THIRST;
public MAX_HUNGER;
public MAX_STAMINA;
public thirst;
public hunger;
public stamina;
public toxicity;
public PlayerClass myClass;
}public class NPC: Person{
// These variables are set by Unity
public list sayings;
}public class PlayerAttributes {
// These variables are set by Unity
public constitution;
public dexterity;
public intelligence
public strength;
}Home | Design | The Team | Team Deliverables