Untitled
unknown
plain_text
a year ago
1.5 kB
2
Indexable
Never
https://sequencediagram.org/ title Chicken Invader _ wave1 activate Game Game->Game: HandleRoundX activate Game Game -> Player : Player( ) activate Player Game -> Chicken : Chicken() activate Chicken Chicken ->Chicken : setPos () activate Chicken Game -> Game : movingShip ( ) activate Game Game ->Player: getShip() activate Player Game ->Player : setPos( ) Game -> Bullet : Shooting activate Bullet Game-> Game : handleChicken() activate Game Game->Chicken : getSHape() & Dead Game ->Bullet: getArrow() alt Dead == fale && getShape == getArrow Game->Chicken :minusHealth() Game ->Bullet: eras( ) end Game->Pickup :setName() activate Pickup Game->Pickup: setpos() Game->Eggs : setpos() activate Eggs Eggs->Player: handleplayer() activate Player Player->Player: minusheath() Chicken->Player: handleplayer() activate Player Player->Player: minusheath() Pickup->Player: handleplayer() activate Player Player->Player : setLifes() & setScore() && setShots() title Chicken Invader _ wave2 activate Game Game->Game: startWave2 activate Game activate Player Game -> Rocks : setpos() activate Rocks Game->Game: movingship(); activate Bullets activate Game Game -> Bullets : shooting() Game ->Game: handleplayer() activate Game Game ->Rocks : getElapsedTime() Game ->Rocks : movingRocks() alt getArrow Game->Rocks :minusHealth() Game ->Rocks: eras() end Rocks->Player: handleplayer() Player->Player: minusheath()