Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.1 kB
3
Indexable
Never
title  Chicken Invader _ wave1

activate Game
 Game->Game: handlẻound0 
activate Game
 Game -> Player : Player( )
activate Player
Player->Player: setpos()
activate Player
 Game -> Chicken : Chicken()
activate Chicken
Chicken ->Chicken : setPos ()
activate Chicken
Chicken->Chicken : setLevel()
activate Chicken

 Game -> Game : movingShip ( )
activate Game

 Game -> Bullet : Shooting
activate Bullet
Game->Game: handleplayer()
activate Game
 Game-> Game : handlechicken()

activate Game
alt Dead == fale && getShape == getArrow 
 Game->Chicken :minusHealth()
 Game ->Bullet: erase()
end
 Game->Eggs : setpos()
activate Eggs
Eggs->Player: handleplayer()
deactivate Eggs
Player->Player: minusheath()
activate Player

alt Dead  && justdead 
 Game->Pickup :setName()
 activate Pickup

 Game ->Pickup: setpos()

end

Chicken->Player: handleplayer()
Player->Player: minusheath()
activate Player
deactivate Chicken
deactivate Chicken
deactivate Chicken

Pickup->Player: handleplayer()
deactivate Pickup
activate Player
Player->Player : setScore()
activate Player