|
PulpCore | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pulpcore.animation.Property pulpcore.animation.Int pulpcore.util.crypt.EncryptedInt
public class EncryptedInt
An EncryptedInt is an Int
whose value is internally encrypted. This
class is usefull for protecting against runtime memory modifications from tools like
Cheat Engine.
For a game with global high scores, typical encrypted values might be the score and the
game level.
Constructor Summary | |
---|---|
EncryptedInt()
Constructs a new Int object with no listener, the value of zero, and a cipher with a randomly generated encryption key. |
|
EncryptedInt(ARC4 cipher)
Constructs a new Int object with no listener, the value of zero, and the specified cipher. |
|
EncryptedInt(int value)
Constructs a new Int object with the specified value, no listener, and a cipher with a randomly generated encryption key. |
|
EncryptedInt(int value,
ARC4 cipher)
Constructs a new Int object with the specified value, no listener, and the specified cipher. |
|
EncryptedInt(PropertyListener listener)
Constructs a new Int object with the specified listener, the value of zero, and a cipher with a randomly generated encryption key. |
|
EncryptedInt(PropertyListener listener,
ARC4 cipher)
Constructs a new Int object with the specified listener, the value of zero, and the specified cipher. |
|
EncryptedInt(PropertyListener listener,
int value)
Constructs a new Int object with the specified value, the specified listener, and a cipher with a randomly generated encryption key. |
|
EncryptedInt(PropertyListener listener,
int value,
ARC4 cipher)
Constructs a new Int object with the specified value, the specified listener, and the specified cipher. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Returns true if the specified object is an Int ,
Fixed ,
Byte ,
Short ,
Integer ,
Long ,
Float , or
Double , and
its value is equal to this value. |
int |
get()
|
int |
hashCode()
|
void |
propertyChange(Property property)
Notifies that a property's value has changed. |
Methods inherited from class pulpcore.animation.Int |
---|
animate, animate, animate, animateTo, animateTo, animateTo, bindTo, bindTo, bindTo, bindWithInverse, bindWithInverse, set, set, setValue, toString |
Methods inherited from class pulpcore.animation.Property |
---|
addListener, getBehavior, getListeners, getValue, isAnimating, removeListener, setBehavior, setValue, stopAnimation, update |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EncryptedInt()
public EncryptedInt(ARC4 cipher)
public EncryptedInt(PropertyListener listener)
public EncryptedInt(PropertyListener listener, ARC4 cipher)
public EncryptedInt(int value)
public EncryptedInt(int value, ARC4 cipher)
public EncryptedInt(PropertyListener listener, int value)
public EncryptedInt(PropertyListener listener, int value, ARC4 cipher)
Method Detail |
---|
public void propertyChange(Property property)
PropertyListener
propertyChange
in interface PropertyListener
property
- the property whose value has changed.public int get()
get
in class Int
public boolean equals(Object obj)
Int
Int
,
Fixed
,
Byte
,
Short
,
Integer
,
Long
,
Float
, or
Double
, and
its value is equal to this value.
equals
in class Int
public int hashCode()
hashCode
in class Int
|
PulpCore | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |