Removing a lot of logging
This commit is contained in:
parent
e88b2248b3
commit
07b63a8426
15 changed files with 9 additions and 67 deletions
|
|
@ -7,7 +7,6 @@ class_name BeeGathering
|
|||
var time_at_patch : float = 0.0
|
||||
|
||||
func enter(_msg := {}):
|
||||
Log.pr("I am going to attempt to gather some stuff!")
|
||||
bee.just_gathering = true
|
||||
#animator.play("Idle")
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ class_name BeeIdle
|
|||
var idle_time : float = 0.0
|
||||
|
||||
func enter(_msg := {}):
|
||||
Log.pr("I sit by idl-bee")
|
||||
#animator.play("Idle")
|
||||
pass
|
||||
|
||||
|
|
@ -15,7 +14,6 @@ func update(delta : float):
|
|||
idle_time += delta
|
||||
|
||||
if idle_time > 2.0:
|
||||
Log.pr("Been idle for 2 seconds, check for something to do...")
|
||||
find_something_to_do()
|
||||
idle_time = 0.0
|
||||
pass
|
||||
|
|
@ -23,10 +21,8 @@ func update(delta : float):
|
|||
func find_something_to_do():
|
||||
if bee.nectar > 0:
|
||||
## Bee has pollen - head home
|
||||
Log.pr(bee, "I have nectar, I should return to the hive")
|
||||
state_transition.emit(self, "Travelling")
|
||||
else:
|
||||
## Bee has no pollen - they should move to a flower
|
||||
Log.pr(bee, "I have no nectar, I should find a flower")
|
||||
state_transition.emit(self, "Travelling")
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -5,11 +5,8 @@ class_name BeeReturning
|
|||
@onready var target = get_tree().get_first_node_in_group("beehive")
|
||||
|
||||
func enter(_msg := {}):
|
||||
Log.pr("I return to the hive!")
|
||||
|
||||
bee.animation_player.play("Flying")
|
||||
|
||||
|
||||
func update(delta : float) -> void:
|
||||
|
||||
if target:
|
||||
|
|
|
|||
|
|
@ -6,12 +6,7 @@ class_name BeeSleeping
|
|||
var time_at_patch : float = 0.0
|
||||
|
||||
func enter(_msg := {}):
|
||||
Log.pr("BuzzzZZZzzzZZZZzzz (Sleeping)!")
|
||||
#animator.play("Idle")
|
||||
|
||||
func update(_delta : float):
|
||||
|
||||
# If there is a dancing bee in range of the hive then
|
||||
# we have a chance to wake up the bee...
|
||||
pass
|
||||
|
||||
func update(_delta):
|
||||
pass
|
||||
|
|
@ -8,7 +8,6 @@ class_name BeeTravelling
|
|||
var return_to_hive : bool = false
|
||||
|
||||
func enter(_msg := {}):
|
||||
Log.pr("I am on the move!")
|
||||
return_to_hive = false
|
||||
## Get the next target location from the bee
|
||||
if bee.just_gathering:
|
||||
|
|
@ -17,11 +16,8 @@ func enter(_msg := {}):
|
|||
else:
|
||||
target = bee.get_next_target()
|
||||
|
||||
Log.pr(bee, target)
|
||||
|
||||
# If we have no target, we are returning to the hive
|
||||
if !target:
|
||||
Log.pr("No more drones to visit, going to go back to the hive")
|
||||
return_to_hive = true
|
||||
|
||||
bee.animation_player.play("Flying")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue