GithubHelp home page GithubHelp logo

target_neighbor name about flare-engine HOT 6 CLOSED

flareteam avatar flareteam commented on May 12, 2024
target_neighbor name

from flare-engine.

Comments (6)

dorkster avatar dorkster commented on May 12, 2024

Any suggestions for this? The name target_neighbor seemed clear when I was implementing it. There's probably properties that have confusing names, so maybe documenting them in the wiki would be a better option.

from flare-engine.

clintbellanger avatar clintbellanger commented on May 12, 2024

Maybe it's a language thing, and the secondary usage of "neighbor" as "nearby" or "adjacent" is not obvious to other languages?

I'm open to better names. It's hard to come up with labels that are precise and short. But yes, with more documentation we could clear some of this up.

from flare-engine.

makrohn avatar makrohn commented on May 12, 2024

So let me see if I have this right: if target_neighbor is set to 3, then the power will select a valid target (whether that's an enemy or a tile) within three tiles to target. Yes? I might go for target_area or target_within or even autotarget_within (or if I have the functionality slightly wrong, maybe random_within).

from flare-engine.

dorkster avatar dorkster commented on May 12, 2024

power will select a valid target (whether that's an enemy or a tile)

It won't target enemies, only tiles. Whether or not a enemy is on the tile is irrelevant.

from flare-engine.

stefanbeller avatar stefanbeller commented on May 12, 2024

When talking about areas, I'd use the word 'range' maybe?
area_range or destination_range or destination_radius?

from flare-engine.

makrohn avatar makrohn commented on May 12, 2024

I think when I first was looking through mods, target_neighbor to ME said, "This boolean will determine whether this power targets 'self' or an 'adjacent enemy'", which was the source of my confusion.

Though neighbor can be used flexibly where I live out in the boonies (I have 'neighbors' five houses away half a mile down the road), to me, the word means "people who live in property that abuts mine," so I think that's where I picked up the connotation that target_neighbor would be a "who" (not a "where") and a boolean, not a range.

If we can't agree on a better name, then I agree with Clint that documentation might be the way to go. When 0.18 is comes out, I might try and do a Wiki writeup on "The Anatomy of a Power".

from flare-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.