constants

package
v0.0.0-...-7b43bce Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_SCENE  = 1
	DEFAULT_SCENE2 = 2

	MONSTER_TYPE_NORMAL = 0
	MONSTER_TYPE_NPC    = 1

	SCENE_AOI_GRID_SIZE = 60
)
View Source
const (
	ATTR_TYPE_STRENGTH = iota
	ATTR_TYPE_AGILITY
	ATTR_TYPE_INTELLIGENCE
)
View Source
const (
	ENTITY_TYPE_HERO int = iota
	ENTITY_TYPE_MONSTER
	ENTITY_TYPE_SPELL
)
View Source
const (
	KCurHero = "hero"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionState

type ActionState int
const (
	ACTION_STATE_IDLE ActionState = iota
	ACTION_STATE_WALK
	ACTION_STATE_RUN
	ACTION_STATE_CHASE  //追击
	ACTION_STATE_ESCAPE //逃跑
	ACTION_STATE_ATTACK
	ACTION_STATE_DIE
)

type BEHAVIOR

type BEHAVIOR int
const (
	BEHAVIOR_STATE_IDLE BEHAVIOR = iota
	BEHAVIOR_STATE_ATTACK
	BEHAVIOR_STATE_ESCAPE
	BEHAVIOR_STATE_RETURN
	BEHAVIOR_STATE_FOLLOW
	BEHAVIOR_STATE_LOOP_WALKER
)

AI行为状态

Jump to

Keyboard shortcuts

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