Magellan: Workshop Erweiterte Befehle

Hier können nach Lust und Laune über alles außerhalb von Fantasya geschrieben werden.
Benutzeravatar
nemo
Heerführer
Beiträge: 232
Registriert: Mi 25. Feb 2015, 12:06

ExCom Teildoku: Talente

Beitrag von nemo » Di 28. Jun 2016, 21:29

Skill
; public java.lang.String magellan.library.Skill.toString()
; public java.lang.String magellan.library.Skill.getName()
; public static final int magellan.library.Skill.getLevel(int,int,int,int,boolean)
; public int magellan.library.Skill.getLevel(magellan.library.Unit,boolean)
; public int magellan.library.Skill.getLevel()
; public void magellan.library.Skill.setLevel(int)
; public boolean magellan.library.Skill.noSkillPoints()
; public int magellan.library.Skill.getRealLevel()
; public int magellan.library.Skill.getChangeLevel()
; public magellan.library.rules.SkillType magellan.library.Skill.getSkillType()
; public int magellan.library.Skill.getPoints()
; public boolean magellan.library.Skill.isLevelChanged()
; public void magellan.library.Skill.setPersons(int)
; public boolean magellan.library.Skill.isLostSkill()
; public static final int magellan.library.Skill.getPointsAtLevel(int)
; public void magellan.library.Skill.setChangeLevel(int)
; public void magellan.library.Skill.setPoints(int)
; public static final int magellan.library.Skill.getLevelAtPoints(int)
; public int magellan.library.Skill.getModifiedLevel(magellan.library.Unit,boolean)
; public void magellan.library.Skill.setLevelChanged(boolean)
; public int magellan.library.Skill.getModifier(magellan.library.Unit)
; public static int magellan.library.Skill.getModifier(magellan.library.rules.SkillType,magellan.library.Unit)
; public static int magellan.library.Skill.getModifier(magellan.library.rules.SkillType,magellan.library.rules.Race,magellan.library.rules.RegionType)
; public int magellan.library.Skill.getPointsPerPerson()
; public final void java.lang.Object.wait() throws java.lang.InterruptedException
; public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException
; public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException
; public boolean java.lang.Object.equals(java.lang.Object)
; public native int java.lang.Object.hashCode()
; public final native java.lang.Class java.lang.Object.getClass()
; public final native void java.lang.Object.notify()
; public final native void java.lang.Object.notifyAll()

SkillType
; public magellan.library.StringID magellan.library.rules.SkillType.getID()
; public magellan.library.ID magellan.library.rules.SkillType.getID()
; public int magellan.library.rules.SkillType.getCost(int)
; public magellan.library.rules.SkillCategory magellan.library.rules.SkillType.getCategory()
; public void magellan.library.rules.SkillType.setCategory(magellan.library.rules.SkillCategory)
; public void magellan.library.rules.SkillType.setCost(int,int)
; public void magellan.library.rules.SkillType.setCost(int)
; public java.lang.String magellan.library.impl.MagellanNamedImpl.toString()
; public java.lang.Object magellan.library.impl.MagellanNamedImpl.clone() throws java.lang.CloneNotSupportedException
; public java.lang.String magellan.library.impl.MagellanNamedImpl.getName()
; public void magellan.library.impl.MagellanNamedImpl.setName(java.lang.String)
; public java.lang.String magellan.library.impl.MagellanNamedImpl.getModifiedName()
; public boolean magellan.library.impl.MagellanIdentifiableImpl.equals(java.lang.Object)
; public int magellan.library.impl.MagellanIdentifiableImpl.hashCode()
; public int magellan.library.impl.MagellanIdentifiableImpl.compareTo(java.lang.Object)
; public int magellan.library.impl.MagellanIdentifiableImpl.superHashCode()
; public final void java.lang.Object.wait() throws java.lang.InterruptedException
; public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException
; public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException
; public final native java.lang.Class java.lang.Object.getClass()
; public final native void java.lang.Object.notify()
; public final native void java.lang.Object.notifyAll()

SkillCategory
; public boolean magellan.library.rules.SkillCategory.isInstance(java.lang.Object)
; public magellan.library.StringID magellan.library.rules.SkillCategory.getID()
; public magellan.library.ID magellan.library.rules.SkillCategory.getID()
; public int magellan.library.rules.Category.compareTo(java.lang.Object)
; public magellan.library.rules.Category magellan.library.rules.Category.getParent()
; public static magellan.library.rules.Category[] magellan.library.rules.Category.getPath(magellan.library.rules.Category)
; public void magellan.library.rules.Category.setParent(magellan.library.rules.Category)
; public static magellan.library.rules.Category magellan.library.rules.Category.getTopLevelAncestor(magellan.library.rules.Category)
; public java.lang.String magellan.library.rules.Category.getIconName()
; public void magellan.library.rules.Category.setSortIndex(int)
; public int magellan.library.rules.Category.getSortIndex()
; public void magellan.library.rules.Category.addChild(magellan.library.rules.Category)
; public java.util.Collection magellan.library.rules.Category.getChildren()
; public boolean magellan.library.rules.Category.hasChildren()
; public void magellan.library.rules.Category.setNaturalorder(java.lang.String)
; public void magellan.library.rules.Category.removeInstance(java.lang.Object)
; public java.util.Collection magellan.library.rules.Category.getInstances()
; public boolean magellan.library.rules.Category.hasInstances()
; public boolean magellan.library.rules.Category.isDescendant(magellan.library.rules.Category)
; public void magellan.library.rules.Category.setIconName(java.lang.String)
; public boolean magellan.library.rules.Category.addInstance(java.lang.Object)
; public java.lang.String magellan.library.impl.MagellanNamedImpl.toString()
; public java.lang.Object magellan.library.impl.MagellanNamedImpl.clone() throws java.lang.CloneNotSupportedException
; public java.lang.String magellan.library.impl.MagellanNamedImpl.getName()
; public void magellan.library.impl.MagellanNamedImpl.setName(java.lang.String)
; public java.lang.String magellan.library.impl.MagellanNamedImpl.getModifiedName()
; public boolean magellan.library.impl.MagellanIdentifiableImpl.equals(java.lang.Object)
; public int magellan.library.impl.MagellanIdentifiableImpl.hashCode()
; public int magellan.library.impl.MagellanIdentifiableImpl.superHashCode()
; public final void java.lang.Object.wait() throws java.lang.InterruptedException
; public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException
; public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException
; public final native java.lang.Class java.lang.Object.getClass()
; public final native void java.lang.Object.notify()
; public final native void java.lang.Object.notifyAll()
I may go pop -- Excuse me!

Benutzeravatar
nemo
Heerführer
Beiträge: 232
Registriert: Mi 25. Feb 2015, 12:06

ExCom Teildoku: Gebäude

Beitrag von nemo » Di 28. Jun 2016, 21:31

Building
; public java.lang.String magellan.library.impl.MagellanBuildingImpl.toString()
; public int magellan.library.impl.MagellanBuildingImpl.getSize()
; public void magellan.library.impl.MagellanBuildingImpl.setSize(int)
; public magellan.library.EntityID magellan.library.impl.MagellanBuildingImpl.getID()
; public magellan.library.ID magellan.library.impl.MagellanBuildingImpl.getID()
; public magellan.library.Region magellan.library.impl.MagellanBuildingImpl.getRegion()
; public void magellan.library.impl.MagellanBuildingImpl.setRegion(magellan.library.Region)
; public magellan.library.rules.BuildingType magellan.library.impl.MagellanBuildingImpl.getBuildingType()
; public magellan.library.rules.UnitContainerType magellan.library.impl.MagellanUnitContainerImpl.getType()
; public magellan.library.utils.Cache magellan.library.impl.MagellanUnitContainerImpl.getCache()
; public magellan.library.Unit magellan.library.impl.MagellanUnitContainerImpl.getOwner()
; public void magellan.library.impl.MagellanUnitContainerImpl.setType(magellan.library.rules.UnitContainerType)
; public java.util.Collection magellan.library.impl.MagellanUnitContainerImpl.units()
; public magellan.library.utils.guiwrapper.CacheableOrderEditor magellan.library.impl.MagellanUnitContainerImpl.getOrderEditor()
; public magellan.library.GameData magellan.library.impl.MagellanUnitContainerImpl.getData()
; public magellan.library.Unit magellan.library.impl.MagellanUnitContainerImpl.getUnit(magellan.library.ID)
; public java.util.Map magellan.library.impl.MagellanUnitContainerImpl.getUnits()
; public void magellan.library.impl.MagellanUnitContainerImpl.setCache(magellan.library.utils.Cache)
; public void magellan.library.impl.MagellanUnitContainerImpl.clearCache()
; public void magellan.library.impl.MagellanUnitContainerImpl.addUnit(magellan.library.Unit)
; public magellan.library.Unit magellan.library.impl.MagellanUnitContainerImpl.removeUnit(magellan.library.ID)
; public java.util.List magellan.library.impl.MagellanUnitContainerImpl.getComments()
; public boolean magellan.library.impl.MagellanUnitContainerImpl.hasTags()
; public java.util.Map magellan.library.impl.MagellanUnitContainerImpl.getTagMap()
; public java.util.List magellan.library.impl.MagellanUnitContainerImpl.getEffects()
; public java.util.Collection magellan.library.impl.MagellanUnitContainerImpl.getItems()
; public void magellan.library.impl.MagellanUnitContainerImpl.addRelation(magellan.library.relation.UnitRelation)
; public magellan.library.relation.UnitRelation magellan.library.impl.MagellanUnitContainerImpl.removeRelation(magellan.library.relation.UnitRelation)
; public void magellan.library.impl.MagellanUnitContainerImpl.setSortIndex(int)
; public int magellan.library.impl.MagellanUnitContainerImpl.getSortIndex()
; public java.lang.String magellan.library.impl.MagellanUnitContainerImpl.getTag(java.lang.String)
; public void magellan.library.impl.MagellanUnitContainerImpl.clearRelations()
; public void magellan.library.impl.MagellanUnitContainerImpl.setOrderEditor(magellan.library.utils.guiwrapper.CacheableOrderEditor)
; public java.util.List magellan.library.impl.MagellanUnitContainerImpl.getRelations()
; public boolean magellan.library.impl.MagellanUnitContainerImpl.containsTag(java.lang.String)
; public void magellan.library.impl.MagellanUnitContainerImpl.deleteAllTags()
; public void magellan.library.impl.MagellanUnitContainerImpl.setComments(java.util.List)
; public java.lang.String magellan.library.impl.MagellanUnitContainerImpl.putTag(java.lang.String,java.lang.String)
; public boolean magellan.library.impl.MagellanUnitContainerImpl.hasCache()
; public void magellan.library.impl.MagellanUnitContainerImpl.setEffects(java.util.List)
; public java.lang.String magellan.library.impl.MagellanUnitContainerImpl.removeTag(java.lang.String)
; public void magellan.library.impl.MagellanUnitContainerImpl.addCacheHandler(magellan.library.utils.CacheHandler)
; public magellan.library.Item magellan.library.impl.MagellanUnitContainerImpl.addItem(magellan.library.Item)
; public java.lang.String magellan.library.impl.MagellanUnitContainerImpl.getModifiedName()
; public magellan.library.Unit magellan.library.impl.MagellanUnitContainerImpl.getModifiedOwnerUnit()
; public java.util.Collection magellan.library.impl.MagellanUnitContainerImpl.modifiedUnits()
; public magellan.library.Unit magellan.library.impl.MagellanUnitContainerImpl.getModifiedUnit(magellan.library.ID)
; public void magellan.library.impl.MagellanUnitContainerImpl.setOwner(magellan.library.Unit)
; public magellan.library.Unit magellan.library.impl.MagellanUnitContainerImpl.getOwnerUnit()
; public void magellan.library.impl.MagellanUnitContainerImpl.setOwnerUnit(magellan.library.Unit)
; public boolean magellan.library.impl.MagellanRelatedImpl.containsAttribute(java.lang.String)
; public java.util.List magellan.library.impl.MagellanRelatedImpl.getAttributeKeys()
; public int magellan.library.impl.MagellanRelatedImpl.getAttributeSize()
; public java.lang.String magellan.library.impl.MagellanRelatedImpl.getAttribute(java.lang.String)
; public void magellan.library.impl.MagellanRelatedImpl.addAttribute(java.lang.String,java.lang.String)
; public java.util.List magellan.library.impl.MagellanRelatedImpl.getRelations(java.lang.Class)
; public java.lang.Object magellan.library.impl.MagellanDescribedImpl.clone() throws java.lang.CloneNotSupportedException
; public java.lang.String magellan.library.impl.MagellanDescribedImpl.getDescription()
; public void magellan.library.impl.MagellanDescribedImpl.setDescription(java.lang.String)
; public java.lang.String magellan.library.impl.MagellanNamedImpl.getName()
; public void magellan.library.impl.MagellanNamedImpl.setName(java.lang.String)
; public boolean magellan.library.impl.MagellanIdentifiableImpl.equals(java.lang.Object)
; public int magellan.library.impl.MagellanIdentifiableImpl.hashCode()
; public int magellan.library.impl.MagellanIdentifiableImpl.compareTo(java.lang.Object)
; public int magellan.library.impl.MagellanIdentifiableImpl.superHashCode()
; public final void java.lang.Object.wait() throws java.lang.InterruptedException
; public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException
; public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException
; public final native java.lang.Class java.lang.Object.getClass()
; public final native void java.lang.Object.notify()
; public final native void java.lang.Object.notifyAll()

CastleType
; public int magellan.library.rules.CastleType.compareTo(java.lang.Object)
; public void magellan.library.rules.CastleType.init(magellan.library.rules.ItemType)
; public void magellan.library.rules.CastleType.setPeasantWage(int)
; public void magellan.library.rules.CastleType.setMinSize(int)
; public boolean magellan.library.rules.CastleType.needsMaintenance()
; public java.util.Collection magellan.library.rules.CastleType.getRawMaterials()
; public void magellan.library.rules.CastleType.addRawMaterial(magellan.library.Item)
; public magellan.library.Item magellan.library.rules.CastleType.getRawMaterial(magellan.library.StringID)
; public int magellan.library.rules.CastleType.getMinSize()
; public int magellan.library.rules.CastleType.getPeasantWage()
; public magellan.library.StringID magellan.library.rules.BuildingType.getID()
; public magellan.library.ID magellan.library.rules.BuildingType.getID()
; public int magellan.library.rules.BuildingType.getSkillBonus(magellan.library.rules.SkillType)
; public void magellan.library.rules.BuildingType.setSkillBonus(magellan.library.rules.SkillType,int)
; public void magellan.library.rules.ConstructibleType.setBuildSkillLevel(int)
; public int magellan.library.rules.ConstructibleType.getBuildSkillLevel()
; public int magellan.library.rules.ConstructibleType.getMaintenance()
; public void magellan.library.rules.ConstructibleType.setMaintenance(int)
; public void magellan.library.rules.ConstructibleType.setMaxSize(int)
; public int magellan.library.rules.ConstructibleType.getMaxSize()
; public java.lang.String magellan.library.impl.MagellanNamedImpl.toString()
; public java.lang.Object magellan.library.impl.MagellanNamedImpl.clone() throws java.lang.CloneNotSupportedException
; public java.lang.String magellan.library.impl.MagellanNamedImpl.getName()
; public void magellan.library.impl.MagellanNamedImpl.setName(java.lang.String)
; public java.lang.String magellan.library.impl.MagellanNamedImpl.getModifiedName()
; public boolean magellan.library.impl.MagellanIdentifiableImpl.equals(java.lang.Object)
; public int magellan.library.impl.MagellanIdentifiableImpl.hashCode()
; public int magellan.library.impl.MagellanIdentifiableImpl.superHashCode()
; public final void java.lang.Object.wait() throws java.lang.InterruptedException
; public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException
; public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException
; public final native java.lang.Class java.lang.Object.getClass()
; public final native void java.lang.Object.notify()
; public final native void java.lang.Object.notifyAll()

BuildingType
; public magellan.library.StringID magellan.library.rules.BuildingType.getID()
; public magellan.library.ID magellan.library.rules.BuildingType.getID()
; public int magellan.library.rules.BuildingType.getSkillBonus(magellan.library.rules.SkillType)
; public void magellan.library.rules.BuildingType.setSkillBonus(magellan.library.rules.SkillType,int)
; public void magellan.library.rules.ConstructibleType.setBuildSkillLevel(int)
; public int magellan.library.rules.ConstructibleType.getBuildSkillLevel()
; public int magellan.library.rules.ConstructibleType.getMaintenance()
; public void magellan.library.rules.ConstructibleType.setMaintenance(int)
; public void magellan.library.rules.ConstructibleType.setMaxSize(int)
; public boolean magellan.library.rules.ConstructibleType.needsMaintenance()
; public int magellan.library.rules.ConstructibleType.getMaxSize()
; public java.util.Collection magellan.library.rules.ConstructibleType.getRawMaterials()
; public void magellan.library.rules.ConstructibleType.addRawMaterial(magellan.library.Item)
; public magellan.library.Item magellan.library.rules.ConstructibleType.getRawMaterial(magellan.library.StringID)
; public java.lang.String magellan.library.impl.MagellanNamedImpl.toString()
; public java.lang.Object magellan.library.impl.MagellanNamedImpl.clone() throws java.lang.CloneNotSupportedException
; public java.lang.String magellan.library.impl.MagellanNamedImpl.getName()
; public void magellan.library.impl.MagellanNamedImpl.setName(java.lang.String)
; public java.lang.String magellan.library.impl.MagellanNamedImpl.getModifiedName()
; public boolean magellan.library.impl.MagellanIdentifiableImpl.equals(java.lang.Object)
; public int magellan.library.impl.MagellanIdentifiableImpl.hashCode()
; public int magellan.library.impl.MagellanIdentifiableImpl.compareTo(java.lang.Object)
; public int magellan.library.impl.MagellanIdentifiableImpl.superHashCode()
; public final void java.lang.Object.wait() throws java.lang.InterruptedException
; public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException
; public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException
; public final native java.lang.Class java.lang.Object.getClass()
; public final native void java.lang.Object.notify()
; public final native void java.lang.Object.notifyAll()
I may go pop -- Excuse me!

Benutzeravatar
nemo
Heerführer
Beiträge: 232
Registriert: Mi 25. Feb 2015, 12:06

ExCom Teildoku: Gegenstände

Beitrag von nemo » Di 28. Jun 2016, 21:33

Item
Spoiler!
public java.lang.String magellan.library.Item.toString()
public java.lang.String magellan.library.Item.getName()
public magellan.library.rules.ItemType magellan.library.Item.getType()
public int magellan.library.Item.getAmount()
public magellan.library.rules.ItemType magellan.library.Item.getItemType()
public java.lang.String magellan.library.Item.getOrderName()
public void magellan.library.Item.setAmount(int)
public final void java.lang.Object.wait() throws java.lang.InterruptedException
public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException
public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException
public boolean java.lang.Object.equals(java.lang.Object)
public native int java.lang.Object.hashCode()
public final native java.lang.Class java.lang.Object.getClass()
public final native void java.lang.Object.notify()
public final native void java.lang.Object.notifyAll()

ItemType
Spoiler!
; public int magellan.library.rules.ItemType.compareTo(java.lang.Object)
; public magellan.library.Item magellan.library.rules.ItemType.getResource(magellan.library.StringID)
; public java.util.Iterator magellan.library.rules.ItemType.getResources()
; public magellan.library.ID magellan.library.rules.ItemType.getID()
; public magellan.library.StringID magellan.library.rules.ItemType.getID()
; public float magellan.library.rules.ItemType.getWeight()
; public void magellan.library.rules.ItemType.setWeight(float)
; public java.lang.String magellan.library.rules.ItemType.getIconName()
; public magellan.library.rules.ItemCategory magellan.library.rules.ItemType.getCategory()
; public void magellan.library.rules.ItemType.addResource(magellan.library.Item)
; public void magellan.library.rules.ItemType.setCategory(magellan.library.rules.ItemCategory)
; public void magellan.library.rules.ItemType.setUseSkill(magellan.library.Skill)
; public void magellan.library.rules.ItemType.setIconName(java.lang.String)
; public magellan.library.Skill magellan.library.rules.ItemType.getMakeSkill()
; public java.lang.String magellan.library.rules.ItemType.getOrderName()
; public void magellan.library.rules.ItemType.setMakeSkill(magellan.library.Skill)
; public boolean magellan.library.rules.ItemType.isHorse()
; public void magellan.library.rules.ItemType.setHorse(short)
; public magellan.library.Skill magellan.library.rules.ItemType.getUseSkill()
; public java.lang.String magellan.library.impl.MagellanNamedImpl.toString()
; public java.lang.Object magellan.library.impl.MagellanNamedImpl.clone() throws java.lang.CloneNotSupportedException
; public java.lang.String magellan.library.impl.MagellanNamedImpl.getName()
; public void magellan.library.impl.MagellanNamedImpl.setName(java.lang.String)
; public java.lang.String magellan.library.impl.MagellanNamedImpl.getModifiedName()
; public boolean magellan.library.impl.MagellanIdentifiableImpl.equals(java.lang.Object)
; public int magellan.library.impl.MagellanIdentifiableImpl.hashCode()
; public int magellan.library.impl.MagellanIdentifiableImpl.superHashCode()
; public final void java.lang.Object.wait() throws java.lang.InterruptedException
; public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException
; public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException
; public final native java.lang.Class java.lang.Object.getClass()
; public final native void java.lang.Object.notify()
; public final native void java.lang.Object.notifyAll()

ItemCategory
; public boolean magellan.library.rules.ItemCategory.isInstance(java.lang.Object)
; public magellan.library.StringID magellan.library.rules.ItemCategory.getID()
; public magellan.library.ID magellan.library.rules.ItemCategory.getID()
; public int magellan.library.rules.Category.compareTo(java.lang.Object)
; public magellan.library.rules.Category magellan.library.rules.Category.getParent()
; public static magellan.library.rules.Category[] magellan.library.rules.Category.getPath(magellan.library.rules.Category)
; public void magellan.library.rules.Category.setParent(magellan.library.rules.Category)
; public static magellan.library.rules.Category magellan.library.rules.Category.getTopLevelAncestor(magellan.library.rules.Category)
; public java.lang.String magellan.library.rules.Category.getIconName()
; public void magellan.library.rules.Category.setSortIndex(int)
; public int magellan.library.rules.Category.getSortIndex()
; public void magellan.library.rules.Category.addChild(magellan.library.rules.Category)
; public java.util.Collection magellan.library.rules.Category.getChildren()
; public boolean magellan.library.rules.Category.hasChildren()
; public void magellan.library.rules.Category.setNaturalorder(java.lang.String)
; public void magellan.library.rules.Category.removeInstance(java.lang.Object)
; public java.util.Collection magellan.library.rules.Category.getInstances()
; public boolean magellan.library.rules.Category.hasInstances()
; public boolean magellan.library.rules.Category.isDescendant(magellan.library.rules.Category)
; public void magellan.library.rules.Category.setIconName(java.lang.String)
; public boolean magellan.library.rules.Category.addInstance(java.lang.Object)
; public java.lang.String magellan.library.impl.MagellanNamedImpl.toString()
; public java.lang.Object magellan.library.impl.MagellanNamedImpl.clone() throws java.lang.CloneNotSupportedException
; public java.lang.String magellan.library.impl.MagellanNamedImpl.getName()
; public void magellan.library.impl.MagellanNamedImpl.setName(java.lang.String)
; public java.lang.String magellan.library.impl.MagellanNamedImpl.getModifiedName()
; public boolean magellan.library.impl.MagellanIdentifiableImpl.equals(java.lang.Object)
; public int magellan.library.impl.MagellanIdentifiableImpl.hashCode()
; public int magellan.library.impl.MagellanIdentifiableImpl.superHashCode()
; public final void java.lang.Object.wait() throws java.lang.InterruptedException
; public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException
; public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException
; public final native java.lang.Class java.lang.Object.getClass()
; public final native void java.lang.Object.notify()
; public final native void java.lang.Object.notifyAll()
I may go pop -- Excuse me!

Benutzeravatar
nemo
Heerführer
Beiträge: 232
Registriert: Mi 25. Feb 2015, 12:06

ExCom Teildoku: StringID [WTF?????]

Beitrag von nemo » Di 28. Jun 2016, 21:34

StringID
; public boolean magellan.library.StringID.equals(java.lang.Object)
; public java.lang.String magellan.library.StringID.toString()
; public java.lang.String magellan.library.StringID.toString(java.lang.String)
; public int magellan.library.StringID.hashCode()
; public java.lang.Object magellan.library.StringID.clone() throws java.lang.CloneNotSupportedException
; public magellan.library.StringID magellan.library.StringID.clone() throws java.lang.CloneNotSupportedException
; public int magellan.library.StringID.compareTo(java.lang.Object)
; public static magellan.library.StringID magellan.library.StringID.create(java.lang.String)
; public final void java.lang.Object.wait() throws java.lang.InterruptedException
; public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException
; public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException
; public final native java.lang.Class java.lang.Object.getClass()
; public final native void java.lang.Object.notify()
; public final native void java.lang.Object.notifyAll()
I may go pop -- Excuse me!

Benutzeravatar
nemo
Heerführer
Beiträge: 232
Registriert: Mi 25. Feb 2015, 12:06

Re: Magellan: Workshop Erweiterte Befehle

Beitrag von nemo » Mo 4. Jul 2016, 15:33

nemo hat geschrieben:Anfang des Jahres hat die Webseite dichtgemacht...
...oder ich war zu blöd zum suchen. Da wiedergefunden: http://magellan.narabi.de/nightly-build ... -tree.html
I may go pop -- Excuse me!

Benutzeravatar
nemo
Heerführer
Beiträge: 232
Registriert: Mi 25. Feb 2015, 12:06

Kein Holz im Wald??

Beitrag von nemo » Mi 20. Jul 2016, 23:29

Moin mal wieder.
Ich hab da etwas seltsames an der helper-Funktion

Code: Alles auswählen

getResourceAmount(String)
beobachtet: Das Ding spuckt mir eine NullPointerException aus, wenn ich es über die Region als Auslöser Aufrufe. Also direkt Region: NPE. Region zu Einheit zu helper: NPE. Obwohl ich die Abfrage mit

Code: Alles auswählen

if (region.resources().toString().contains(String)){etc}
abgesichert habe.
Wenn ich es von einer Einheit aus auslöse, scheint hingegen alles in Ordnung zu sein.

Kann das jemand reproduzieren? Und weiß vllt., woran das liegt?
(ich vermute irgendeine Spezialität der helper-Klasse)

cya
nemo
I may go pop -- Excuse me!

Benutzeravatar
PilGaldur
Kundschafter
Beiträge: 26
Registriert: Fr 6. Nov 2015, 15:23

Re: Magellan: Workshop Erweiterte Befehle

Beitrag von PilGaldur » Mo 19. Sep 2016, 08:42

Hallo allerseits,

Ich bin ein absoluter Laie, was das Programmieren angeht.

Allerdings habe ich jetzt schon ein paar Skripte für Einheiten geschrieben. So fällen meine Holzfäller völlig automatisiert, meine Händler berechnen ihre Handel, die Tierfänger entscheiden an Hand des Aufkommens von Tieren, was sie fangen, mein Schatzmeister gibt dem Magier immer genug Silber zum Lernen usw.

Nun, es macht mir einfach Spass!

Leider erschließen sich mir die Möglichkeiten nicht, was ich mit den Containern (Partei,Region) anfangen kann.
Hat jemand für mich einen Hinweis und vielleicht ein Beispiel? Ich würde mich sehr freuen!

Benutzeravatar
nemo
Heerführer
Beiträge: 232
Registriert: Mi 25. Feb 2015, 12:06

Re: Magellan: Workshop Erweiterte Befehle

Beitrag von nemo » Mo 19. Sep 2016, 17:17

Moin!
Erstmal ist zu sagen, dass die Einheiten technisch gesehen ebenfalls Container sind (die allerdings "bloß" Personen und Items enthalten und ansonsten halt unsere eigentlichen Agenten auf Fantasya sind).
Anders gesagt: Die anderen Container sind weitere Möglichkeiten, Skripte zu speichern und Funktionen aufzurufen.

Kosmetisches Beispiel: du willst, dass alle Einheiten deiner Partei (oder in einer Region, einer Burg, einem Gebäude, Schiff etc.) das selbe Rassenpräfix haben, aber nicht dauernd nachschauen und per Hand eintragen.
(Lösung s.u. Spoiler 1)

Strategisches Beispiel: Wenn man mit Tarnen und Täuschen arbeitet und Parteitarnung verwendet, kann man in Magellan zwar in der Detail-Spalte irgendwo finden, als was sich jemand verkleidet hat, hätte es aber vielleicht lieber im Befehlsblock als Kommentar vor Augen?
(Lösung s.u. spoiler 2)
Spoiler!
Spoiler1:

Code: Alles auswählen

for (Unit unit : container.units()){  // alle Einheiten im entsprechenden Container werden durchgegangen
 if (!(unit.getRaceNamePrefix().equals("Beispiel"))){  // das Rassenpräfix der Einheit wird untersucht*
  helper.addOrder(unit, "PREFIX Beispiel"); // Einheiten ohne das Präfix werden angewiesen, es sich zu geben
 }
}
/*
*) für weitere Abfragemöglichkeiten der UnitImpl-Klasse: http://magellan.narabi.de/nightly-build/api/index.html?magellan/library/UnitID.html
(empfehle aber bei FMagellan dringend alles vor Benutzung zu testen, manche Funktionen hat FM augenscheinlich nicht)
Lässt sich in beliebige Container einbauen.

Spoiler2:

Code: Alles auswählen

for (Unit unit : container.units()){
 if (unit.getGuiseFaction() != null){ 
 /* Obwohl man die Enttarnung mit TARNE PARTEI <echte Parteinummer> zurück setzt, gibt es getGuiseFaction(), und die ist null, wenn man nicht parteigetarnt ist */
 helper.addOrder(unit, "; getarnt als: "+unit.getGuiseFaction().toString());
 }
}
Kommt dann in den Parteicontainer.
Mit dem Boolean isSpy() (true, wenn sich jemand fremdes als Einheit Deiner Partei ausgibt) lassen sich Parteitarnungen gegen einen selbst zB mit automatischen Angriffen kontern.
(zumindest in meiner Version bekomme ich Spione wie eigene Einheiten im Übersichtsbaum angezeigt, bloß, dass ich denen keine Befehle schreiben (sie aber bestätigen) kann)
Passiert eine das, während man gleichzeitig Forlage verwendet, hat man ein Problem.
Hat jemand noch weitere Ideen (ich selber bin da etwas eingeschränkt, weil ich nach mehreren Experimenten entschieden habe, einheitzentriert vorzugehen. Ist übersichtlicher für mich.)

Gruß
Nemo
I may go pop -- Excuse me!

Benutzeravatar
PilGaldur
Kundschafter
Beiträge: 26
Registriert: Fr 6. Nov 2015, 15:23

Re: Magellan: Workshop Erweiterte Befehle

Beitrag von PilGaldur » Fr 30. Sep 2016, 14:25

Hallo,

mit helper.getLevel(unit,"talentname") frage ich das Talentlevel einer Einheit ab. Wie kann ich die erreichten Lerntage abfragen?

Danke im Voraus

Benutzeravatar
nemo
Heerführer
Beiträge: 232
Registriert: Mi 25. Feb 2015, 12:06

AW: Lerntage abfragen

Beitrag von nemo » Mi 5. Okt 2016, 14:51

Moinmoin,
nach ein bisschen Voodoo in der Hexenküche:
1) Abgelegt ist die Information in der Collection getSkills() für Einheiten.
Eine Variante der Funktion ist getModiefiedSkills() für Einheiten. Diese Berücksichtigt bereits gegebene Befehle und updated die Werte, falls die Gegebenen Befehle darin resultieren, dass Personen zwischen Einheiten wechseln. getSkills() ist dem gegenüber sozusagen "statisch", weil es nur die Ausgangswerte berücksichtigt.

2) Da ich mich mit "nackten" Collections überhauopt nicht auskenne (irgendwas mit Iteratoren und die kann ich nicht ausstehen :D ), hab ich zwei Hilfsfumktionen auf Stringbasis gebastelt, das die Lerntage extrahiert und als Integer ausgibt:
Spoiler!

Code: Alles auswählen

int lerntage(Unit unit, String skill){
 String n = ""; // bequemlichkeit halber sofort deklariert
                     // In dieser Variablen werden unsere Zieldaten eingefangen werden
 for (String s : unit.getSkills().toString().substring(1, unit.getSkills().toString().length()-1).split(", ")){
  // Die Collection wird zu einem String umgebaut, 
  // (In dieser Darstellungsweise beginnt der String mit "[", endet mit "]"
  // und trennt die Elemente der Collection mit ", ")
  // (netto machen wir die Collection also zu einem Array von Strings und
  // untersuchen die Einzelnen Elemente)
  if (s.substring(0, s.indexOf(" ")).equalsIgnoreCase(skill)){
  // Praktischerweise beginnt jedes Element mit Talentname, gefolgt von Space
  // unpraktischerweise hat Magellan nicht alle Talente großgeschrieben in der Datenbank,
  //  daher equalsIgnoreCase(String) statt startsWith(String)
   n = s.substring((s.indexOf("["))+1, s.indexOf("]"));
   // noch praktischererweise sind die Lerntage in den Elementen in eckige Klammern gesetzt
  } 
 }
 // Entweder besteht der String n jetzt aus Ziffern-Charakters, oder ist leer.
 try{
  return Integer.parseInt(n);
 }
 catch (NumberFormatException nfe){
 // wenn n leer ist, steht das Talent nicht in der Collection und muss daher null Lerntage haben.
  return 0;
 }
}

int modiefiedLerntage(Unit unit, String skill){
 String n = ""; 
 for (String s : unit.getModifiedSkills().toString().substring(1, unit.getSkills().toString().length()-1).split(", ")){
  if (s.substring(0, s.indexOf(" ")).equalsIgnoreCase(skill)){
   n = s.substring((s.indexOf("["))+1, s.indexOf("]"));
  } 
 }
 try{
  return Integer.parseInt(n);
 }
 catch (NumberFormatException nfe){
  return 0;
 }
}
Groß- und kleinschreibung des Talentes beim Aufruf sind egal, Umlaute und ß sind zu belassen. Die Funktionen kommen in die Bibliothek und können natürlich beliebig zu was bequemeren umbenannt werden. Aufruf direkt, d.h. ohne Punkt oder irgendwas anderes davor.
bsp:
lerntage(unit, "AuSdAuEr");
Mal mehr mal weniger hilfreiche Website: http://magellan.narabi.de/nightly-build ... mmary.html

Gruß
nemo
I may go pop -- Excuse me!

Antworten

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast