Skip to content

Needs implementation #30

Closed
Closed
@ASalvail

Description

@ASalvail

A todo list of yet unimplemented API

  • Game.market.* (Transactions and Orders need testing)
  • Game.market.incomingTransactions
  • Game.market.outgoingTransactions
  • Game.market.orders
  • Game.market.get_all_orders
  • Game.market.get_order
  • Game.notify
  • Game.map.findExit (implement callback)
  • Game.map.findRoute (has callback)
  • Game.getObjectById (for objects that have an id, but do not implement RoomObjectProperties)
  • Creep.body (part of it is in creep.parts)
  • Creep.saying
  • Creep.drop
  • Creep.moveByPath
  • Creep.moveTo (implement opts)
  • Creep.notifyWhenAttacked
  • Flag.*
  • Mineral.*
  • Nuke.*
  • Ressouce.id
  • Room.memory
  • Room.visual See What kind of RoomVisual support do we want? #46
  • Room.serializePath
  • Room.deserializePath
  • Room.findExitTo
  • Room.findPath
  • Room.getPositionAt
  • Room.lookAt
  • Room.lookAtArea
  • RoomPosition.findClosestByPath see Implementation details of RoomPosition.findClosestByPath #55
  • RoomPosition.findPathTo
  • RoomPosition.isEqualxy
  • RoomPosition.look
  • RoomVisual.* See What kind of RoomVisual support do we want? #46
  • StructureController.activateSafeMode
  • StructureController.unclaim
  • StructureExtension.* (I don't believe we can go with HasStore)
  • StructureExtractor.*
  • StructureKeeperLair.*
  • StructureLab.*
  • StructureLink.*
  • StructureNuker.*
  • StructureObserver.*
  • StructurePowerBank.*
  • StructurePowerSpawn.*
  • StructurePortal.*
  • StructureRampart.*
  • StructureRoad.*
  • StructureSpawn.memory
  • StructureSpawn.spawnCreep (options part, see todo in code)
  • StructureSpawn.recycleCreep
  • StructureSpawn.renewCreep
  • StructureTerminal.*
  • StructureTower.*
  • Tombstone.id
  • Update constants. There are a lot that are missing.

Relevant notes

There seem to be a need for a few more traits such as:

  • Decays -> tickToDecay
  • HasEnergyStore -> for towers, spawns, extensions, rampart, [link, lab, terminal, creep, container, storage].
  • HasHitPoints -> hits and hitsMax

Prior to solving a lot of other problems, there is a need for:

  • A Path struct
  • A way to sanely get arrays back from js (fixed from using TryFrom<Array>)
  • A way to parse objects deeply (e.g. for market orders) (using serde)
  • A way to encode the return value of all look methods (from Room and RoomPosition)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: A PR with an enhancement or a proposed on in an issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions