simple spectator that says hi every message

This commit is contained in:
sm
2014-05-11 21:45:26 -07:00
parent 2d8b878f50
commit 7d77f18470
4 changed files with 114 additions and 32 deletions
+25
View File
@@ -0,0 +1,25 @@
package client
import (
"log"
"bitbucket.org/hackerbots/server"
)
type SimpleSpectator struct {
width, height float64
}
// NewSimpleSpectator simply returns a populated, usable *SimplePlayer
func NewSimpleSpectator(width, height float64) *SimpleSpectator {
return &SimpleSpectator{
width: width,
height: height,
}
}
// Recv is our implementation of receiving a server.Boardstate from the server
func (p *SimpleSpectator) Update(bs *server.Boardstate) map[string]server.Instruction {
log.Println("hi")
return nil
}