Documentation ¶
Overview ¶
Package query defines methods for complex queries about the game world state.
Index ¶
- type Query
- func (q *Query) ClosestEnemy(obj entity.Entity) (result space.OffsetEntity, found bool)
- func (q *Query) EnemyOf(obj1, obj2 entity.Entity) bool
- func (q *Query) Footprint(obj entity.Entity, loc space.Location) space.Footprint
- func (q *Query) IsGameOver() bool
- func (q *Query) Loc(obj entity.Entity) space.Location
- func (q *Query) VisibleEntities(loc space.Location, radius int) []space.OffsetEntity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
func (*Query) ClosestEnemy ¶
func (*Query) IsGameOver ¶
func (*Query) VisibleEntities ¶
Click to show internal directories.
Click to hide internal directories.