evolution
Sequence Diagram startAction

Note Summary
Note1 
Note2 
Note3 
 

Object Summary
<unnamed> 
<unnamed> 
human 
humans 
humanSelection 
Player 
selectedSquare 
 

Diagram Elements Detail

Note1

text A player selects a square with coordinates (x, y). There is a human on the selected square and the human is selected or there are humans selected and there is no human on the square.

Note2

text Method place(human) can throw an IllegalPlacementException if there is already a human on the square (can not happen) or the the square is not yet explored.

Note3

text The method build can throw an IllegalPlacementException if the constructions can stand on the squares or the player tries to build the construction with more squares than humans selected or the construction shape falls out of the gameboard dimension.

Activation Summary
Activation10 
Activation13 
Activation15 
Activation20 
Activation21 
Activation22 
Activation8 
Activation9 
 

Dependency Links

to Class evolution.WorldController

Message Links

to Object

Name
Number 1.1
Operation startAction

to Object

Number 1.1.1.1
Operation getHumanSelection
Return humanSelection

to Object humanSelection

Number 1.1.1.2
Operation pop
Return human

to Object human

Number 1.1.1.3
Operation getSquareOfLand
Return oldSquare

to Object

Number 1.1.1.4
Operation getSelectedSquare
Return selectedSquare

to Object selectedSquare

Name
Number 1.1.1.5
Operation place
Arguments human
Condition selectedSquare != oldSquare

to Object

Name )
Number 1.1.2.1
Operation countSquares
Arguments getConstructionShape(
Return nbSquares

to Object humans

Number 1.1.2.2
Operation add
Arguments getHumanSelection().pop()
Iteration i :=1...min(nbSquares, getHumanSelection().size()

to Object

Name , getConstructionShape(), humans, getSelectedSquare())
Number 1.1.2.3
Operation build
Arguments getConstructionName(

to Object

Name
Number 1.1.1
Condition getConstructionName() == null

to Object human

Number 1.1.1.6
Operation setAction
Arguments getActionName()

to Object

Name
Number 1.1.2
Condition (getConstructionName() !=null) && (getConstructionShape() == null)

to Object

Number 1.1.2.4
Operation setConstructionName
Arguments null

to Object

Number 1.1.2.5
Operation setConstructionShape
Arguments null

Activation10

Activation13

Activation15

Activation20

Activation21

Activation22

Activation8

Activation9

Stereotype singleton
Activation Summary
Activation16 
Activation18 
 

Dependency Links

to Class evolution.constructions.ConstructionKnowledgeCatalog

Note Links

to Note Note3


Activation16

Activation18

human
Activation Summary
Activation12 
Activation19 
 

Dependency Links

to Class evolution.Human


Activation12

Activation19

humans
Activation Summary
Activation17 
 

Dependency Links

to Class java.util.List


Activation17

humanSelection
Activation Summary
Activation11 
 

Dependency Links

to Class evolution.HumanSelection


Activation11

Player

Stereotype actor

Message Links

to Object

Name
Number 1
Operation selectSquareOfLand
Arguments x, y

Note Links

to Note Note1


selectedSquare
Activation Summary
Activation14 
 

Dependency Links

to Class evolution.lands.SquareOfLand

Note Links

to Note Note2


Activation14

a gvijf production