|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.PolymorphEventInfo
public class PolymorphEventInfo
Used by AEventGenerator to generate proper polymorph events (with proper emotional intensity). We are continously decreasing the intensity of emotions that are triggered by repeating events - such as polymorph groaning. We store these events in this class.
| Field Summary | |
|---|---|
private java.util.ArrayList<java.lang.Double> |
eventCounter
Here we store last x polymorph agent events |
private int |
id
Polymorph agent id |
private double |
lastBiteTime
Last time this polymorph bite us |
private double |
lastPolymorphEventTime
Last time some repeating event was caused by the polymorph |
| Constructor Summary | |
|---|---|
PolymorphEventInfo(int id)
Constructor for this class, requires polymorph id. |
|
| Method Summary | |
|---|---|
java.util.ArrayList<java.lang.Double> |
getEventCounter()
Gets event counter object. |
int |
getId()
Gets id of the polymorph. |
double |
getLastBiteTime()
Gets last time the polymorph has bitten us. |
double |
getLastPolymorphEventTime()
Gets last time the polymorph has caused some event. |
void |
setId(int id)
Sets id of this polymorph. |
void |
setLastPolymorphEventTime(double lastPolymorphEventTime)
Sets last time the polymorph caused some event. |
void |
updateAction(ActionType type,
double currentTime)
Updates this class internal variables according to the action the polymorph have made to us. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int id
private double lastPolymorphEventTime
private java.util.ArrayList<java.lang.Double> eventCounter
private double lastBiteTime
| Constructor Detail |
|---|
public PolymorphEventInfo(int id)
id - polymorph id| Method Detail |
|---|
public int getId()
public void setId(int id)
id - new idpublic double getLastPolymorphEventTime()
public void setLastPolymorphEventTime(double lastPolymorphEventTime)
lastPolymorphEventTime - new timepublic java.util.ArrayList<java.lang.Double> getEventCounter()
public double getLastBiteTime()
public void updateAction(ActionType type,
double currentTime)
type - type of the actioncurrentTime - time of the action
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||