weapon

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultWeapon

type DefaultWeapon struct {
	Damage int
}

当前武器是一个抽象概念,不需要实际的图片

func (*DefaultWeapon) Fight

func (D *DefaultWeapon) Fight(position vector2.Vector, direction direction.Direction, camp string)

type Weapon

type Weapon interface {
	Fight(position vector2.Vector, direction direction.Direction, camp string)
}

Jump to

Keyboard shortcuts

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