mirror of
https://github.com/JohnBreaux/Boat-Battle.git
synced 2024-11-14 21:15:58 +00:00
Player: Yield on signal returns the parameters of that signal. Refactor around this fact.
This commit is contained in:
parent
66cac5247f
commit
1116316176
@ -66,12 +66,8 @@ func turn_start():
|
|||||||
var fire = Fire.instance()
|
var fire = Fire.instance()
|
||||||
|
|
||||||
add_child(fire)
|
add_child(fire)
|
||||||
yield(fire, "fire_at")
|
var pos = yield(fire, "fire_at")
|
||||||
while not fire_at_position:
|
return pos
|
||||||
pass
|
|
||||||
var target = fire_at_position
|
|
||||||
fire_at_position = null
|
|
||||||
return target
|
|
||||||
|
|
||||||
# getBoard: returns the player's board
|
# getBoard: returns the player's board
|
||||||
# returns: board
|
# returns: board
|
||||||
|
Loading…
Reference in New Issue
Block a user