universum.bi
Class BeingParams

java.lang.Object
  extended by universum.bi.BeingParams
All Implemented Interfaces:
java.lang.Cloneable

public final class BeingParams
extends java.lang.Object
implements java.lang.Cloneable

BeingParams define parameters of the being constructed at the start of the game and born during the game

See Also:
Being, EventKind.BEING_BORN

Field Summary
 float M
          Mass of the being, defines how much enegry being can hold, but bigger capacity means more energy consumption during moving and living.
 java.lang.Object parameter
          Parameter, can be used for customization of new beings as newly created being receives its BeingParams (an argument to ACTION_BORN is passed as an argument for BEING_BORN).
 float S
          Speed of the beings, defines how fast being can move, but faster moving means higher energy spending even during short moves
 
Constructor Summary
BeingParams(float mass, float speed)
          Simple constructor, without customization parameter
BeingParams(float mass, float speed, java.lang.Object parameter)
          Constructor with customization parameter
 
Method Summary
 BeingParams clone()
          Cloning
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

M

public float M
Mass of the being, defines how much enegry being can hold, but bigger capacity means more energy consumption during moving and living. Also your score is defined as total mass of al your beings at the end of the game.


S

public float S
Speed of the beings, defines how fast being can move, but faster moving means higher energy spending even during short moves


parameter

public java.lang.Object parameter
Parameter, can be used for customization of new beings as newly created being receives its BeingParams (an argument to ACTION_BORN is passed as an argument for BEING_BORN).

See Also:
EventKind.ACTION_BORN, EventKind.BEING_BORN
Constructor Detail

BeingParams

public BeingParams(float mass,
                   float speed)
Simple constructor, without customization parameter


BeingParams

public BeingParams(float mass,
                   float speed,
                   java.lang.Object parameter)
Constructor with customization parameter

Method Detail

clone

public BeingParams clone()
Cloning

Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object