evolution
Sequence Diagram newGame

Note Summary
Note1 
Note2 
Note3 
 

Object Summary
<unnamed> 
<unnamed> 
<unnamed> 
<unnamed> 
<unnamed> 
<unnamed> 
<unnamed> 
<unnamed> 
<unnamed> 
<unnamed> 
<unnamed> 
gameBoard 
Player 
sq 
world 
worldController 
 

Diagram Elements Detail

Note1

text The player clicked on new game.

Note2

text Create a new square of land with coordinates (x, y) where 0 <= x < gameBoardWidth and 0 <= y < gameBoardHeight. Each new square will have a random landType chosen from the landTypes specified in the property file of lands. For each new square explored is false except for one square in the middle of the gameboard.

Note3

text All the property files needed to initilize the other knowledgecatalogs are listed in the property file named resourceFile or have the default values actions.prop, constructions.prop, lands.prop and recourses.prop.

Activation Summary
Activation1 
Activation17 
Activation2 
 

Dependency Links

to Class gui.UserInterface

Message Links

to Object

Name
Number 1.1
Operation createWorldController

to Object worldController

Name worldController := create(resourceFile, gameBoardWidth, gameBoardHeight)
Number 1.1.1

to Object

Number 1.2
Operation initGameBoard

to Object gameBoard

Name create(worldController)
Number 1.2.1

Activation1

Activation17

Activation2

Stereotype singleton
Activation Summary
Activation7 
 

Dependency Links

to Class evolution.Evolution


Activation7

Activation Summary
Activation8 
 

Dependency Links

to Class evolution.GameBoard

Message Links

to Object sq

Name create(x, y, explored)
Number 1.1.1.1.4.1

Activation8

Stereotype singleton
Activation Summary
Activation9 
 

Dependency Links

to Class evolution.EvolutionKnowledgeCatalog

Message Links

to Object

Number 1.1.1.1.3.1
Operation initialize
Arguments actionsFile

to Object

Number 1.1.1.1.3.2
Operation initialize
Arguments landsFile

to Object

Number 1.1.1.1.3.3
Operation initialize
Arguments recourcesFile

to Object

Number 1.1.1.1.3.4
Operation initialize
Arguments constructionsFile

Note Links

to Note Note3


Activation9

Stereotype singleton
Activation Summary
Activation10 
 

Dependency Links

to Class evolution.actions.ActionKnowledgeCatalog


Activation10

Stereotype singleton
Activation Summary
Activation13 
 

Dependency Links

to Class evolution.constructions.ConstructionKnowledgeCatalog


Activation13

Stereotype singleton
Activation Summary
Activation12 
 

Dependency Links

to Class evolution.resources.ResourceKnowledgeCatalog


Activation12

Stereotype singleton
Activation Summary
Activation11 
 

Dependency Links

to Class evolution.lands.LandKnowledgeCatalog


Activation11

Stereotype singleton
Activation Summary
Activation15 
 

Dependency Links

to Class evolution.lands.LandKnowledgeCatalog


Activation15

Stereotype singleton
Activation Summary
Activation16 
 

Dependency Links

to Class evolution.events.EventManager


Activation16

Stereotype singleton
Activation Summary
Activation19 
 

Dependency Links

to Class evolution.events.EventManager


Activation19

gameBoard
Activation Summary
Activation18 
 

Dependency Links

to Class gui.GameBoard

Message Links

to Object

Name
Number 1.2.1.1
Operation subscribe
Arguments gameBoard, SquareChangedEvt.class

Activation18

Player

Stereotype actor

Message Links

to Object

Name
Number 1
Operation newGameActionPerformed

Note Links

to Note Note1


sq

Stereotype collection
Activation Summary
Activation14 
 

Dependency Links

to Class evolution.lands.SquareOfLand

Message Links

to Object

Number 1.1.1.1.4.1.1
Operation generateLandResources
Arguments landType
Return landResources

to Object

Number 1.1.1.1.4.1.2
Operation signalEvent
Arguments new SquareChangedEvt(sq)

Note Links

to Note Note2


Activation14

world

Stereotype singleton
Activation Summary
Activation4 
Activation6 
 

Dependency Links

to Class evolution.World

Message Links

to Object world

Number 1.1.1.1.1
Operation setWorldController
Arguments worldController

to Object

Number 1.1.1.1.2
Operation initialize

to Object

Number 1.1.1.1.4
Operation create
Arguments gameBoardWidth, gameBoardHeight
Return gameBoard

to Object

Number 1.1.1.1.3
Operation initialize
Arguments resourceFile

Activation4

Activation6

worldController
Activation Summary
Activation3 
Activation5 
 

Dependency Links

to Class evolution.WorldController

Message Links

to Object world

Name world := create(worldController, resourceFile, gameBoardWidth, gameBoardHeight)
Number 1.1.1.1

to Object worldController

Number 1.1.1.2
Operation initState

Activation3

Activation5

a gvijf production