query

package
v0.0.0-...-e6da677 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2013 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package query defines methods for complex queries about the game world state.

Index

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 New

func New(w *world.World) *Query

func (*Query) ClosestEnemy

func (q *Query) ClosestEnemy(obj entity.Entity) (result space.OffsetEntity, found bool)

func (*Query) EnemyOf

func (q *Query) EnemyOf(obj1, obj2 entity.Entity) bool

func (*Query) Footprint

func (q *Query) Footprint(obj entity.Entity, loc space.Location) space.Footprint

func (*Query) IsGameOver

func (q *Query) IsGameOver() bool

func (*Query) Loc

func (q *Query) Loc(obj entity.Entity) space.Location

func (*Query) VisibleEntities

func (q *Query) VisibleEntities(loc space.Location, radius int) []space.OffsetEntity

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL