attack

package
v0.0.0-...-54eea7a Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccuracyWeapon

func AccuracyWeapon(attackUnit *unit.Unit, bullet *unit.Bullet)

func CheckFireToTarget

func CheckFireToTarget(attackUnit *unit.Unit, mp *_map.Map, target *unit.Target) bool

func CollisionDamage

func CollisionDamage(typeTarget string, idTarget int, bullet *unit.Bullet, mp *_map.Map)

func CollisionWeaponRangeCollision

func CollisionWeaponRangeCollision(attackUnit *unit.Unit, mp *_map.Map, target *unit.Target) bool

func DamageTarget

func DamageTarget(typeTarget string, idTarget int, mp *_map.Map, damage, equipDamage int)

func Explosion

func Explosion(bullet *unit.Bullet, mp *_map.Map)

func Fire

func Fire(user *player.Player, attackUnit *unit.Unit) ([]*unit.Bullet, bool)

метод определяет начально положение пули скорость выстрела и направление полета

func GetXYTarget

func GetXYTarget(user *player.Player, tUnit *unit.Unit, target *unit.Target) bool

TODO

func GetXYTarget2

func GetXYTarget2(user *player.Player, target *unit.Target, mp *_map.Map) bool

func GetZAndSpeedBullet

func GetZAndSpeedBullet(bullet *unit.Bullet, startDist, currentDist, startSpeed float64) float64

func ReloadGun

func ReloadGun(reloadUnit *unit.Unit)

func RotateGunToBody

func RotateGunToBody(rotateGunUnit *unit.Unit, time int) (*unit.PathUnit, int)

func RotateGunToTarget

func RotateGunToTarget(rotateGunUnit *unit.Unit, targetX, targetY int, time int) (*unit.PathUnit, int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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