Giter Club home page Giter Club logo

Comments (8)

sparr avatar sparr commented on July 19, 2024 2

Proposal: move most of the relevant code to RoomPosition.createFlag() and have Room.createFlag() call that, instead of vice versa?

from engine.

sparr avatar sparr commented on July 19, 2024

You cannot perform any operations on a room in which you have no visibility (creeps or structures).

from engine.

TheRealMaxion avatar TheRealMaxion commented on July 19, 2024

You can create flags in rooms without vision through the GUI, thus the reasoning why the code should perhaps be able to as well.
Currently your code has to create the flag in a room with vision and then move it to the room that has no vision on the next tick.

from engine.

AlinaNova21 avatar AlinaNova21 commented on July 19, 2024

from engine.

sparr avatar sparr commented on July 19, 2024

@TheRealMaxion I did not know about that trick. Thanks!

@ags131 RoomPosition.createFlag() sounds like a good idea. Any idea why it doesn't already exist?

from engine.

TheRealMaxion avatar TheRealMaxion commented on July 19, 2024

@sparr it exists but it uses the room object internally

from engine.

Strikeeaglechase avatar Strikeeaglechase commented on July 19, 2024

Any update? The inability to create flags in remote rooms is very annoying.

from engine.

sparr avatar sparr commented on July 19, 2024

@Strikeeaglechase Contribution to my PR may help move this along. I wasn't able to get it working before I stopped playing, but it was really close.

from engine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.