gameobjtype

package
v0.0.0-...-948f7eb Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Attrib = [GameObjType_Count]struct {
	SpeedLimit float64
	Radius     float64
	MaxInTeam  int
	AddOctree  bool
	LifeTick   int64
}{
	Ball:          {300, 10, 1, true, int64(time.Second) * gameconst.LongLife},
	Shield:        {400, 5, 32, true, int64(time.Second) * gameconst.LongLife},
	HommingShield: {400, 7, 16, true, int64(time.Second) * 60},
	Bullet:        {300, 5, 100, true, int64(time.Second) * 10},
	HommingBullet: {300, 7, 10, true, int64(time.Second) * 60},
	SuperBullet:   {600, 15, 10, true, int64(time.Second) * 10},
	BurstBullet:   {300, 5, 100, true, int64(time.Second) * 10},
	HomeMark:      {100, 3, 1, false, int64(time.Second) * gameconst.LongLife},
	Deco:          {600, 3, 100, false, int64(time.Second) * gameconst.LongLife},
	Hard:          {0, 3, 1, false, int64(time.Second) * gameconst.LongLife},
	Food:          {0, 3, 1, true, int64(time.Second) * gameconst.LongLife},
}

Functions

func CollisionTo

func CollisionTo(srcType, dstType GameObjType, sqd float64) bool

func InteractTo

func InteractTo(srcType, dstType GameObjType) bool

func MakeType2Radius

func MakeType2Radius() [GameObjType_Count]float64

for client

Types

This section is empty.

Jump to

Keyboard shortcuts

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