probes!!!! (not anal)

This commit is contained in:
Fraser Graham
2013-11-06 23:26:29 -08:00
parent d2ae3c11d8
commit 829ba83f41
2 changed files with 16 additions and 0 deletions
+2
View File
@@ -20,6 +20,7 @@ type Robot struct {
LastFired int `json:"-"`
Collision bool `json:"collision"`
Hit bool `json:"hit"`
Probe *v.Point2d `json:"probe"`
}
// This is the subset of data we send to players about robots
@@ -158,6 +159,7 @@ func (s StatsRequest) Valid() bool {
type Instruction struct {
MoveTo *v.Point2d `json:"move_to,omitempty"`
FireAt *v.Point2d `json:"fire_at,omitempty"`
Probe *v.Point2d `json:"probe,omitempty"`
TargetSpeed *float32 `json:"target_speed,omitempty"`
Repair *bool `json:"repair,omitempty"`
Stats Stats `json:"stats"`