EquippedFactory.java
src/net/sourceforge/pain/logic/fn/factory/EquippedFactory.java · 498 B
From the archive pain_0_42.zip
Download the archive « Back to the archive contents
package net.sourceforge.pain.logic.fn.factory;
import net.sourceforge.pain.data.type.*;
import net.sourceforge.pain.data.prototype.*;
/**
* User: fmike Date: Sep 13, 2003 Time: 8:38:14 PM
*/
public class EquippedFactory {
public static void init(EquippedPrototype proto, Equipped obj) throws Exception {
Space inventory = (Space) GlobalFactory.createObject(proto.getInventoryPrototype()).getRole(Space.class);
inventory.setDesc("Inside inventory");
obj.setInventory(inventory);
}
}