Documentation
¶
Index ¶
- func EuclidianDistance(a, b Vector) float64
- func GetOrderedIds[T any](m map[uuid.UUID]T) []uuid.UUID
- func QuickDistance(a, b Vector) float64
- type Bullet
- type Camera
- type ClientScene
- func (g *ClientScene) Draw(screen *ebiten.Image)
- func (g *ClientScene) Layout(outsideWidth, outsideHeight int) (int, int)
- func (g *ClientScene) Reset()
- func (s *ClientScene) SpawnElement(name string, element interface{})
- func (s *ClientScene) Update() error
- func (s *ClientScene) UpdateBulletsOrder()
- func (s *ClientScene) UpdateLettucesOrder()
- func (s *ClientScene) UpdateRabbits()
- func (s *ClientScene) UpdateRabbitsOrder()
- type Form
- type Game
- type Lettuce
- type Meteor
- type Player
- type Rabbit
- type RabbitDirectScene
- type Rect
- type Scene
- type SceneManager
- type Serial
- type ServerScene
- func (s *ServerScene) CheckTime()
- func (g *ServerScene) Draw(screen *ebiten.Image)
- func (g *ServerScene) Layout(outsideWidth, outsideHeight int) (int, int)
- func (g *ServerScene) Reset()
- func (s *ServerScene) SpawnElement(name string, element interface{})
- func (s *ServerScene) Update() error
- func (s *ServerScene) UpdateRabbits()
- type Timer
- type Vector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EuclidianDistance ¶
func QuickDistance ¶
Types ¶
type Bullet ¶
type Camera ¶
type ClientScene ¶
type ClientScene struct {
// contains filtered or unexported fields
}
func NewClientScene ¶
func NewClientScene(g *Game, client network.GenericClient) *ClientScene
func (*ClientScene) Draw ¶
func (g *ClientScene) Draw(screen *ebiten.Image)
func (*ClientScene) Layout ¶
func (g *ClientScene) Layout(outsideWidth, outsideHeight int) (int, int)
func (*ClientScene) Reset ¶
func (g *ClientScene) Reset()
func (*ClientScene) SpawnElement ¶
func (s *ClientScene) SpawnElement(name string, element interface{})
func (*ClientScene) Update ¶
func (s *ClientScene) Update() error
func (*ClientScene) UpdateBulletsOrder ¶
func (s *ClientScene) UpdateBulletsOrder()
func (*ClientScene) UpdateLettucesOrder ¶
func (s *ClientScene) UpdateLettucesOrder()
func (*ClientScene) UpdateRabbits ¶
func (s *ClientScene) UpdateRabbits()
func (*ClientScene) UpdateRabbitsOrder ¶
func (s *ClientScene) UpdateRabbitsOrder()
type Game ¶
type Game struct {
// contains filtered or unexported fields
}
func (*Game) GetCurrentScene ¶
GetCurrentScene devuelve la escena actual del juego
type Lettuce ¶
func NewLettuce ¶
func NewLettuce() *Lettuce
type Rabbit ¶
type RabbitDirectScene ¶
type RabbitDirectScene struct {
// contains filtered or unexported fields
}
func NewRabbitDirectScene ¶
func NewRabbitDirectScene(g *Game) *RabbitDirectScene
func (*RabbitDirectScene) Draw ¶
func (g *RabbitDirectScene) Draw(screen *ebiten.Image)
func (*RabbitDirectScene) Layout ¶
func (g *RabbitDirectScene) Layout(outsideWidth, outsideHeight int) (int, int)
func (*RabbitDirectScene) Reset ¶
func (g *RabbitDirectScene) Reset()
func (*RabbitDirectScene) SpawnElement ¶
func (s *RabbitDirectScene) SpawnElement(name string, element interface{})
func (*RabbitDirectScene) Update ¶
func (g *RabbitDirectScene) Update() error
type Rect ¶
func (Rect) Intersects ¶
type SceneManager ¶
type SceneManager struct {
// contains filtered or unexported fields
}
func (*SceneManager) Draw ¶
func (s *SceneManager) Draw(screen *ebiten.Image)
func (*SceneManager) Update ¶
func (s *SceneManager) Update() error
type ServerScene ¶
type ServerScene struct {
// contains filtered or unexported fields
}
func NewServerScene ¶
func NewServerScene(g *Game, server *network.Server) *ServerScene
func (*ServerScene) CheckTime ¶
func (s *ServerScene) CheckTime()
func (*ServerScene) Draw ¶
func (g *ServerScene) Draw(screen *ebiten.Image)
func (*ServerScene) Layout ¶
func (g *ServerScene) Layout(outsideWidth, outsideHeight int) (int, int)
func (*ServerScene) Reset ¶
func (g *ServerScene) Reset()
func (*ServerScene) SpawnElement ¶
func (s *ServerScene) SpawnElement(name string, element interface{})
func (*ServerScene) Update ¶
func (s *ServerScene) Update() error
func (*ServerScene) UpdateRabbits ¶
func (s *ServerScene) UpdateRabbits()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.