.reffixed
It is 1 if what you are looking at can't move: a bot anchored with .fixpos or a still shape.
Facts
- Address
- 477
- Name
.reffixed- Kind
- Sense: the engine writes it for the DNA to read
- Group
- What it sees (ref*)
- Written by
- The engine, in the actions phase of every cycle: 1 if the bot your focus eye sees is anchored with
.fixpos, or if the shape it sees is still. Also on colliding with a bot. You read it in the next cycle. - Cleared
- The engine, every cycle, when the senses are cleared.
- Range
- 0 or 1.
- Mutations
- picked as a read (
*)
.reffixed is 1 if the bot your focus eye sees is anchored in place, because it put a positive value in its .fixpos; it is 0 if it can move. When what you see is a shape, it is 1 if the shape is still.
Against something anchored you don't need to chase or correct your aim for its movement: it is enough to stay pointing and shoot. Many Bestiary vegetables anchor themselves this way, for example Alga Cohesum.
If you see nothing, it is 0.
' a target that doesn't move: I stay still and shoot
cond
*.eye5 0 >
*.reffixed 1 =
*.refeye *.myeye !=
start
-1 .shoot store
stop