Changelog 2015-05-13

  • Breaking change: Exit objects removed from the game. Now all non-wall border squares (i.e. with x or y equal to 0 or 49) are treated as exits.
  • Breaking change: Deprecated methods Game.getRoom, RoomPosition.findNearest and RoomPosition.equalsTo removed from the API.
  • Breaking change: All constants removed from the deprecated Game scope. Now they are accessible only through the global scope.
  • Added new error constants ERR_RCL_NOT_ENOUGH and ERR_GCL_NOT_ENOUGH.
  • Added new structure type constant STRUCTURE_CONTROLLER.
  • Added new properties Structure.level, Structure.progressTotal, Structure.ticksToLive.
  • Added new property Room.controller.
  • Added new methods Creep.claimController, Creep.unclaimController, Creep.upgradeController.
  • Healer creeps can now heal themselves.
Have more questions? Submit a request

Comments

  • avdg_

    Is there a way to know the room a creep is accessing without the exit object? There is a way to know a path to go to a specific room, but I didn't find a way to know the adjacent rooms itself.

  • Avatar
    Artem from Screeps

    @avdg_ There is no such method yet. Probably we may add it to the Map object later.

Powered by Zendesk