Ejemplo n.º 1
0
        public void mock(BlockType[] blockTypes, Weapon[] weapons)
        {
            ItemTypes = new ItemType[10];

            ItemTypes[0] = new ItemType("Sword", new Rectangle(0, 0, 40, 40), weapons[0]);
            ItemTypes[1] = new ItemType("Food", new Rectangle(40, 0, 40, 40));
            ItemTypes[2] = new ItemType("Stone", new Rectangle(80, 0, 40, 40), blockTypes[0]);
            ItemTypes[3] = new ItemType("Shirt", new Rectangle(120, 0, 40, 40));
            ItemTypes[4] = new ItemType("Health Potion", new Rectangle(160, 0, 40, 40));
            ItemTypes[5] = new ItemType("Mana Potion", new Rectangle(200, 0, 40, 40), "placewall:1");
            ItemTypes[6] = new ItemType("Pants", new Rectangle(240, 0, 40, 40));
            ItemTypes[7] = new ItemType("Gun", new Rectangle(280, 0, 40, 40));
            ItemTypes[8] = new ItemType("Copper Ore", new Rectangle(320, 0, 40, 40), "placeentity:1");
            ItemTypes[9] = new ItemType("Bow", new Rectangle(360, 0, 40, 40), weapons[2]);
        }
Ejemplo n.º 2
0
 public RecipieRequirement(ItemType type, int qty)
 {
     Type = type;
     Qty = qty;
 }
Ejemplo n.º 3
0
 public Item(ItemType itemType, int stack)
 {
     Type = itemType;
     Stack = stack;
     IsUnlimited = false;
 }
Ejemplo n.º 4
0
 public Item(ItemType itemType)
 {
     Type = itemType;
     Stack = 1;
     IsUnlimited = false;
 }
Ejemplo n.º 5
0
 public Item(ItemType itemType, int stack, bool isUnlimited)
 {
     Type = itemType;
     Stack = stack;
     IsUnlimited = isUnlimited;
 }