Documentation
¶
Index ¶
- Constants
- Variables
- func Draw(screen *ebiten.Image)
- func Update()
- type Position
- type Tank
- func (t *Tank) BulletIsPassable() bool
- func (t *Tank) Draw(screen *ebiten.Image)
- func (t *Tank) Fight()
- func (t *Tank) GetCamp() string
- func (t *Tank) SetPosition(position Position)
- func (t *Tank) TakeDamage(damage int)
- func (t *Tank) TankIsPassable() bool
- func (t *Tank) Update(direction direction.Direction)
Constants ¶
View Source
const ( Up int = iota Down Left Right )
Variables ¶
View Source
var GlobalTanks = make(map[int]*Tank)
View Source
var TankIndex = 0
Functions ¶
Types ¶
type Tank ¶
type Tank struct {
Hp int
Collider *collision.Collider
Direction direction.Direction
Image image.Image
Attack bool
Move bool
Camp string
Index int
// contains filtered or unexported fields
}
func (*Tank) BulletIsPassable ¶
func (*Tank) SetPosition ¶
func (*Tank) TakeDamage ¶
func (*Tank) TankIsPassable ¶
Click to show internal directories.
Click to hide internal directories.