Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
G
H
K
L
M
N
P
R
S
T
U
V
A
addEntity(Integer)
- Method in class universum.bi.
PointInfo
Engine-only API.
ALLOW_HTTP_WATCHING
- Static variable in class universum.bi.
Constants
B
Being
- Interface in
universum.bi
Being is interface for living creatures.
BeingInterface
- Interface in
universum.bi
The BeingInterface defines everything being knows about reality it lives in.
BeingParams
- Class in
universum.bi
BeingParams define parameters of the being constructed at the start of the game and born during the game
BeingParams(float, float)
- Constructor for class universum.bi.
BeingParams
Simple constructor, without customization parameter
BeingParams(float, float, Object)
- Constructor for class universum.bi.
BeingParams
Constructor with customization parameter
BORN_BONUS
- Static variable in class universum.bi.
Constants
BORN_BONUS_GROWTH
- Static variable in class universum.bi.
Constants
C
checkPerms()
- Static method in class universum.bi.
Constants
clone()
- Method in class universum.bi.
BeingParams
Cloning
clone()
- Method in class universum.bi.
Event
Constants
- Class in
universum.bi
Class containing basic constants affecting game rules.
Constants()
- Constructor for class universum.bi.
Constants
createLocation(Object...)
- Method in interface universum.bi.
EntityInterface
Creates location in specific for the topology way, for example createLocation(2,1)
D
distance(Location, Location)
- Method in interface universum.bi.
EntityInterface
Compute distance in some metrics, depending on current topology of space
E
Entity
- Interface in
universum.bi
Everything in the world should implement this interface.
entityCost(Entity, String)
- Method in interface universum.bi.
EntityInterface
Return cost of particular entity kind.
EntityInterface
- Interface in
universum.bi
Interface between engine and entity.
equals(Object)
- Method in class universum.bi.
Location
Event
- Class in
universum.bi
Event is an abstraction describing both actions and events in Electric Jungle.
Event(EventKind)
- Constructor for class universum.bi.
Event
Create new Event of a kind
Event(EventKind, Object)
- Constructor for class universum.bi.
Event
Create new Event of a kind with kind-specific parameter
Event(EventKind, Integer, Object)
- Constructor for class universum.bi.
Event
Create new Event of a kind with kind-specific parameter for particular target (engine-only)
EventKind
- Enum in
universum.bi
Kind of an event.
G
GameKind
- Enum in
universum.bi
Kind of the game.
getCount(Being)
- Method in class universum.bi.
PointInfo
Amount of energy at this point.
getDebug()
- Static method in class universum.bi.
Constants
getDrawGrid()
- Static method in class universum.bi.
Constants
getDrawNumber()
- Static method in class universum.bi.
Constants
getEnergy(Being)
- Method in interface universum.bi.
BeingInterface
Every being is characterized by energy, this function returns current energy of the being
getEntities(Entity, Integer[])
- Method in class universum.bi.
PointInfo
Returns ids of all entities at given point.
getGrowthRate(Being)
- Method in class universum.bi.
PointInfo
How fast energy increases here.
getHeight()
- Static method in class universum.bi.
Constants
getId(Entity)
- Method in interface universum.bi.
EntityInterface
Gives unique integer id for entiry, to be used as a handle for it.
getLocation(Entity)
- Method in interface universum.bi.
EntityInterface
Figure out current position of entity
getLocation()
- Method in class universum.bi.
PointInfo
Topological location of this point.
getMass(Being, Integer)
- Method in interface universum.bi.
BeingInterface
Provides rounded up mass of being described by id
getMaxCount(Being)
- Method in class universum.bi.
PointInfo
The maximum amount of energy at the point.
getMaxTurns()
- Static method in class universum.bi.
Constants
getName()
- Method in interface universum.bi.
Being
Being's name, could be anything, for unique id use id returned by BeingInterface.getId(Entity e)
getNeighbourInfo(Being)
- Method in interface universum.bi.
BeingInterface
Information about points in the neighbourhood
getOwner(Being, Integer)
- Method in interface universum.bi.
BeingInterface
Provides owner's handle, for simple FoF detection
getOwnerName()
- Method in interface universum.bi.
Being
Name of the player who owns this being, used only once to create first being, all others inherit the same owner
getParams()
- Method in interface universum.bi.
Being
Parameters of being, used only once to create first being, for others BeingParams defined by parent (argument to BEING_BORN event)
getPointInfo(Being)
- Method in interface universum.bi.
BeingInterface
Provide information about point where being is
getReachableLocations(Being)
- Method in interface universum.bi.
BeingInterface
Get the locations we can go to in one turn (depends on speed)
getRecordFile()
- Static method in class universum.bi.
Constants
getRefreshTurns()
- Static method in class universum.bi.
Constants
getTurnDelay()
- Static method in class universum.bi.
Constants
getTurnsCount()
- Method in interface universum.bi.
EntityInterface
getWidth()
- Static method in class universum.bi.
Constants
getX()
- Method in class universum.bi.
Location
Return x coordinate of this location, actual semantic of this function depends on topology and may be something not so intuitive.
getY()
- Method in class universum.bi.
Location
Return y coordinate of this location, , actual semantic of this function depends on topology and may be something not so intuitive.
GROW_GOLDEN
- Static variable in class universum.bi.
Constants
GROW_REGULAR
- Static variable in class universum.bi.
Constants
H
hashCode()
- Method in class universum.bi.
Location
K
K_bite
- Static variable in class universum.bi.
Constants
how much energy (% mass) can be consumed per turn
K_borncost
- Static variable in class universum.bi.
Constants
how expensive giving birth is (% mass)
K_emin
- Static variable in class universum.bi.
Constants
minimal amout of energy being can have, if lower - it dies, and leaves remaining amount on the map
K_fight
- Static variable in class universum.bi.
Constants
how much damage, in % of mass creature can do
K_fightcost
- Static variable in class universum.bi.
Constants
how expensive attack is (% mass)
K_fightmovepenalty
- Static variable in class universum.bi.
Constants
penalty to attack, if combined with move
K_markcost
- Static variable in class universum.bi.
Constants
how expensive is marking (in absolute units)
K_markttl
- Static variable in class universum.bi.
Constants
how long mark lives (in turns)
K_masscost
- Static variable in class universum.bi.
Constants
how much energy (% of effective mass) being spends per turn.
K_maxbornvariation
- Static variable in class universum.bi.
Constants
how different baby could be from parent (both speed and mass)
K_maxmass
- Static variable in class universum.bi.
Constants
maximal mass allowed
K_maxmassperpoint
- Static variable in class universum.bi.
Constants
maximal biomass at the point, -1f - unlimited
K_maxspeed
- Static variable in class universum.bi.
Constants
maximal speed allowed
K_minbornvariation
- Static variable in class universum.bi.
Constants
how different baby could be from parent (both speed and mass)
K_minmass
- Static variable in class universum.bi.
Constants
minimal mass allowed
K_minspeed
- Static variable in class universum.bi.
Constants
minimal speed allowed
K_movecost
- Static variable in class universum.bi.
Constants
how much energy (% speed) spent during move
K_retaliate
- Static variable in class universum.bi.
Constants
how much damage attacker recieves, % mass of attacked
K_toborn
- Static variable in class universum.bi.
Constants
how much energy (% mass) being should have to give birth to others
K_turnduration
- Static variable in class universum.bi.
Constants
maximal allowed duration of the turn in milliseconds (typical turn must be much shorter, although)
kind()
- Method in class universum.bi.
Event
Return kind of this Event
kind
- Variable in class universum.bi.
UserGameInfo
kind of the game
L
Location
- Class in
universum.bi
Location defines the point in the space of game universe.
Location(int, int)
- Constructor for class universum.bi.
Location
Deprecated.
log(Being, String)
- Method in interface universum.bi.
BeingInterface
Logging facility
M
M
- Variable in class universum.bi.
BeingParams
Mass of the being, defines how much enegry being can hold, but bigger capacity means more energy consumption during moving and living.
makeTurn(BeingInterface)
- Method in interface universum.bi.
Entity
Make this entity's turn, returned value is an event describing action this being is planning to perform, see EventKind for possible event types.
MAX_GOLDEN
- Static variable in class universum.bi.
Constants
MAX_REGULAR
- Static variable in class universum.bi.
Constants
maxTurns
- Variable in class universum.bi.
UserGameInfo
number of turns
N
NUM_GOLDEN
- Static variable in class universum.bi.
Constants
number of golden resource sources
NUM_REGULAR
- Static variable in class universum.bi.
Constants
number of regular resource sources
P
parameter
- Variable in class universum.bi.
BeingParams
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).
PointInfo
- Class in
universum.bi
Information on particular point of the universe.
PointInfo(Universe, Location)
- Constructor for class universum.bi.
PointInfo
Engine only constructor.
processEvent(BeingInterface, Event)
- Method in interface universum.bi.
Entity
Handle an event, we pass BeingInterface, as it supersedes EntityInterface
R
reinit(UserGameInfo)
- Method in interface universum.bi.
Being
Invoked once per externally added being, before game start, provides basic information about game it will participate in
removeEntity(Integer)
- Method in class universum.bi.
PointInfo
Engine-only API.
S
S
- Variable in class universum.bi.
BeingParams
Speed of the beings, defines how fast being can move, but faster moving means higher energy spending even during short moves
setDebug(boolean)
- Static method in class universum.bi.
Constants
setDrawGrid(boolean)
- Static method in class universum.bi.
Constants
setDrawNumber(boolean)
- Static method in class universum.bi.
Constants
setHeight(int)
- Static method in class universum.bi.
Constants
setMaxTurns(int)
- Static method in class universum.bi.
Constants
setRecordFile(String)
- Static method in class universum.bi.
Constants
setRefreshTurns(int)
- Static method in class universum.bi.
Constants
setTurnDelay(int)
- Static method in class universum.bi.
Constants
setWidth(int)
- Static method in class universum.bi.
Constants
stepToward(Being, Location)
- Method in interface universum.bi.
BeingInterface
Compute step towards a location.
T
timeTillKilled(Entity)
- Method in interface universum.bi.
EntityInterface
Return approximate amount of time remaining till this entity will be killed by engine as hang.
toString()
- Method in class universum.bi.
BeingParams
toString()
- Method in class universum.bi.
Event
toString()
- Method in class universum.bi.
Location
TOTAL_CAPACITY_GOLDEN
- Static variable in class universum.bi.
Constants
TOTAL_CAPACITY_REGULAR
- Static variable in class universum.bi.
Constants
TOTAL_GROWTH_GOLDEN
- Static variable in class universum.bi.
Constants
TOTAL_GROWTH_REGULAR
- Static variable in class universum.bi.
Constants
TOTAL_STARTED_GOLDEN
- Static variable in class universum.bi.
Constants
TOTAL_STARTED_REGULAR
- Static variable in class universum.bi.
Constants
totalMass(Being)
- Method in class universum.bi.
PointInfo
Total mass of beings at the point.
U
universum.bi
- package universum.bi
UserGameInfo
- Class in
universum.bi
Pure data class containing info about game visible to user, passed to reinit() metod of Being
UserGameInfo()
- Constructor for class universum.bi.
UserGameInfo
V
valueOf(String)
- Static method in enum universum.bi.
EventKind
Returns the enum constant of this type with the specified name.
valueOf(String)
- Static method in enum universum.bi.
GameKind
Returns the enum constant of this type with the specified name.
values()
- Static method in enum universum.bi.
EventKind
Returns an array containing the constants of this enum type, in the order they are declared.
values()
- Static method in enum universum.bi.
GameKind
Returns an array containing the constants of this enum type, in the order they are declared.
VERSION
- Static variable in class universum.bi.
Constants
engine version
A
B
C
D
E
G
H
K
L
M
N
P
R
S
T
U
V
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes