• My Pages
  • Comments
  • Add Link
  • Subscribe
  • Subscribe User
  • Edit (GUI)
  • Edit (Text)
  • Rename Page
  • Copy Page
  • Load Page
  • Save Page
  • Delete Page
  • Attachments
  • Check Spelling
  • Diffs
  • Info
  • Revert to this revision
  • XML
  • Render as Docbook
  • Print View
  • Raw Text
  • Delete Cache
  • Like Pages
  • Local Site Map
  • Remove Spam
  • Package Pages
  • Sync Pages
    • Diff for "DocumentationPending"
    Differences between revisions 1 and 2
    Revision 1 as of 2014-11-25 00:41:23
    Size: 2068
    Editor: Inanna
    Comment:
    Revision 2 as of 2014-11-25 00:42:14
    Size: 2093
    Editor: Inanna
    Comment:
    Deletions are marked like this. Additions are marked like this.
    Line 45: Line 45:
    ----
    CategoryFunctions

    These are bot functions available via script that may or may not be documented here on the wiki. I'll add more functions to this list and work on adding documentation to the wiki as time permits. I've left the extra stuff with each function name for now so you can see what type of arguments/parameters it's expecting or will return. And without further ado...

    • get castle() : CastleBean {
      get id() : int {
      get fieldId() : int {
      get buffs() : Object {
      get coords() : String {
      get x() : int {
      get y() : int {
      get name() : String {
      cityNameCoords() : String {
      get heroes() : ArrayCollection {
      get buildings() : ArrayCollection {
      get fields() : ArrayCollection {
      get fortification() : FortificationsBean {
      get resource() : CastleResourceBean {
      get tradesArray() : ArrayCollection {
      get troop() : TroopBean {
      get selfArmies() : ArrayCollection {
      get hasEnemyArmies() : Boolean {
      hasEnemyArmiesWithin(sec:int, ifUnknown:Boolean = false) : Boolean {
      get haunted() : Boolean {
      get brokenGates() : Boolean {
      getConfig(str:String, defaultValue:Number = 0) : Number {
      setCityTimer(key:String) : void {
      cityTimingAllowed(key:String, interval:int, test:Boolean = false) : Boolean {
      getTownHallLevel() : int {
      getWallLevel() : int {
      getEmptyPositions(typeId:int) : Array {
      getActiveBuilding(multiQueue:Boolean = true) : BuildingBean {
      getBuildingByTypeId(typeId:int) : BuildingBean {
      getBuildingByPosId(positionId:int) : BuildingBean {
      getActiveResearch() : AvailableResearchListBean {
      hasTech(typeId:int, level:int) : Boolean {
      countBuilding(typeId:int, minLevel:int, maxlevel:int = 10) : int {
      getBuildingLevel(typeId:int) : int {
      getMaxArmySize(level:int = 0) : int {
      getTechLevel(typeId:int) : int {
      findHeroByName(heroName:String, heroLevel:int = -1, heroList:ArrayCollection = null) : HeroBean {
      getTravelTime(startField:int, targetField:int, troop:TroopBean, missionType:int, restTime:int = 0) : int {
      getArmyTravelTime(newArmy:NewArmyParam, buff:Boolean = true) : int {
      getFoodConsume(newArmy:NewArmyParam) : Number {


    CategoryFunctions

    DocumentationPending (last edited 2015-04-17 01:42:52 by LKD70)