The length measured when the position was created (N plus Z), the one the threshold and the max
length are compared with. It doesn't count the zeroes that complete the string: "mmmmm!" created by
start has 5, "ab!!!!" forged from "ab" has 2.
The digits of the N section.
The digits of the Z section.
Gets all the digits of the position in a single number: N as the integer part and Z below it.
It is used to compare positions, and system.from creates a position back from it.
Checks if this and other have the same value.
The object to compare with.
true if both have the same value.
Checks if this goes after other.
The right side of the comparison.
true if this > other.
Checks if this goes after other or has the same value.
The right side of the comparison.
true if this >= other.
Checks if this goes before other.
The right side of the comparison.
true if this < other.
Checks if this goes before other or has the same value.
The right side of the comparison.
true if this <= other.
The default class of the positions: data plus the comparison functions.
You never create positions with
new: aStaquiasystem creates them (forge,start,next,previous,core) as instances of its own subclass of this class (or of the class passed in its options), soposition instanceof Positionistrue. Extend it to add your own methods to every position, seeIStaquiaOptions.Example