screeps-api icon indicating copy to clipboard operation
screeps-api copied to clipboard

Method signatures

Open cameroncondry opened this issue 9 years ago • 1 comments

Here is a list of method signatures that should be updated:

Creep.owner always has username in the returned object. Spawn.createCreep name and memory are optional. Spawn.canCreateCreep name is optional.

RoomPosition.findClosest can return a number of structured objects as well as unstructured objects. For instance, the output using FIND_HOSTILE_CREEPS can return a creep object which can be passed into other positioning methods.

cameroncondry avatar Jun 01 '15 00:06 cameroncondry

*.transferEnergy amount is optional.

cameroncondry avatar Jun 01 '15 03:06 cameroncondry