Wanted Features isoAjax.js
Sep 10
Rating 3.50 out of 5
[?]

isoEngine.php contains a number of javascript functions which have to be written in php. Thus teh php extensions. These functions are available in javascript client side code only. You may use all or just some of these functions. Each function is listed here.

Modifying this file means that you will not be able to easily upgrade to the next version. This file could have changes made to it in a future version.

Note: Once this file finishes load, it calls startGame(). You must have this javascript function defined somewhere in your included files

  • getObjectAt(x, y) - Returns a div object of the object at x,y. Returns 0 if no object at that point. Does not return multiple objects if objects are stacked.
  • getUnitAt(x, y) - Returns a div object of the unit at x,y. Returns 0 if no unit at that point.Does not return multiple objects if objects are stacked.
  • getUnitIDAt(x, y) - Returns the unitID at x,y. returns 0 if no unit at that point.
  • getUnitIDs() - Returns a comma delimited string of all unitIDs in the game.
  • updateWaitTime(change) - Updates the waitTime for all units within the current map.

Leave a Reply

You must be logged in to post a comment.