Documentation ¶
Index ¶
- func Act(myPersonality model.Personality, goal model.Goal, actions []model.Action) (abortPersonality bool, abortGoal bool)
- func GetAllThings() chan model.Thing
- func GetMeAndTarget(meTag uint, targetTag uint) (me model.Thing, target model.Thing)
- func GetMyTag() uint
- func HandleIncoming(b []byte)
- func HandleMyTagMessage(b []byte)
- func PersistThingsMessage(b []byte)
- func PickTarget() (model.Thing, bool)
- func SendJoinGameMessage(game model.Game)
- func SendMessageJoinServer()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMeAndTarget ¶
func HandleMyTagMessage ¶
func HandleMyTagMessage(b []byte)
func PersistThingsMessage ¶
func PersistThingsMessage(b []byte)
PersistThingsMessage puts a the things found in a []byte into the database, signalling when done
func SendJoinGameMessage ¶
SendJoinGameMessage handles incoming messages
func SendMessageJoinServer ¶
func SendMessageJoinServer()
SendMessageJoinServer tells the server about the bot
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.