Package fr.formiko.formiko
Class Pheromone
java.lang.Object
fr.formiko.formiko.Pheromone
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static String
b10ToB16
(int x) static int
b16ToB10
(char c) static Pheromone
boolean
special equals function.boolean
Standard equals function.byte
getB()
byte
getBc()
getColor()
byte
getG()
byte
getR()
byte
getRc()
byte
getVc()
static int
int
hashCode()
static String
nbrToChiffre
(int x) phToS()
void
setB
(byte x) void
setG
(byte x) void
setR
(byte x) static Pheromone
toHex()
Return the hexadecimal code that describe this.private String
toHex
(int x) Return the hexadecimal code of an int.toString()
Return a string that describe this.
-
Field Details
-
r
private byte r -
v
private byte v -
b
private byte b
-
-
Constructor Details
-
Pheromone
public Pheromone(byte r, byte v, byte b) -
Pheromone
public Pheromone(int r, int v, int b) -
Pheromone
-
Pheromone
-
Pheromone
-
Pheromone
public Pheromone()
-
-
Method Details
-
getR
public byte getR() -
getG
public byte getG() -
getB
public byte getB() -
setR
public void setR(byte x) -
setG
public void setG(byte x) -
setB
public void setB(byte x) -
getRc
public byte getRc() -
getVc
public byte getVc() -
getBc
public byte getBc() -
getColor
-
toString
Return a string that describe this. -
toHex
Return the hexadecimal code that describe this. -
toHex
Return the hexadecimal code of an int. -
afficheToi
public void afficheToi() -
equals
Standard equals function. Null & other class type proof. -
hashCode
public int hashCode() -
equals
special equals function. -
getXFromS
-
phToS
-
phToColor
-
colorToPh
-
b10ToB16
-
nbrToChiffre
-
b16ToB10
public static int b16ToB10(char c) -
sToPh
-