Modifier and Type | Field and Description |
---|---|
protected int |
currentValue |
protected IEnvironment |
environment |
protected int |
timeStamp |
Constructor and Description |
---|
IStateInt(IEnvironment env,
int i) |
Modifier and Type | Method and Description |
---|---|
void |
_set(int y,
int wstamp)
Modifies the value without storing the former value on the trailing stack.
|
int |
add(int delta)
modifying a StoredInt by an increment
|
int |
get()
Returns the current value.
|
void |
overrideTimeStamp(int aTimeStamp) |
abstract void |
set(int y)
Modifies the value and stores if needed the former value on the
trailing stack.
|
String |
toString() |
protected final IEnvironment environment
protected int currentValue
protected int timeStamp
public IStateInt(IEnvironment env, int i)
public final int get()
public abstract void set(int y)
public final int add(int delta)
delta
- increment valuepublic void _set(int y, int wstamp)
y
- the new valuewstamp
- the stamp of the world in which the update is performedpublic void overrideTimeStamp(int aTimeStamp)
Copyright © 2018. All rights reserved.