world

package
v0.0.0-...-769df87 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxOid = 20000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseMapObject

type BaseMapObject struct {
	// contains filtered or unexported fields
}

func (*BaseMapObject) GetObjectID

func (o *BaseMapObject) GetObjectID() int

func (*BaseMapObject) GetPosition

func (o *BaseMapObject) GetPosition() *image.Point

func (*BaseMapObject) GetType

func (o *BaseMapObject) GetType() int

type IMapObject

type IMapObject interface {
	GetObjectID() int
	GetPosition() *image.Point
	GetType() int
}

type Map

type Map struct {
	CannotInvincible bool

	MapID       int
	ReturnMapID int
	// contains filtered or unexported fields
}

func NewMap

func NewMap(mapid int, channel int, returnMapID int, monsterRate float64) *Map

func (*Map) AddMapObject

func (m *Map) AddMapObject(obj IMapObject)

type MapEffect

type MapEffect struct {
	// contains filtered or unexported fields
}

func NewMapEffect

func NewMapEffect(msg string, itemID int) *MapEffect

type MapTimer

type MapTimer struct {
	MapToWarpTo    int
	MinLevelToWarp int
	MaxLevelToWarp int
	// contains filtered or unexported fields
}

func NewMapTimer

func NewMapTimer(newDuration int64, mapToWarpToP int, minLevelToWrapP int, maxLevelToWrapP int) *MapTimer

func (*MapTimer) GetTimeLeft

func (t *MapTimer) GetTimeLeft() int64

type Player

type Player struct {
	netio.IConn
	// contains filtered or unexported fields
}

func NewPlayer

func NewPlayer(conn netio.IConn) *Player

func (*Player) LoadCharacterData

func (p *Player) LoadCharacterData(charID int) error

func (*Player) UpdatePartyMemberHP

func (p *Player) UpdatePartyMemberHP()

TODO:

type SpawnPoint

type SpawnPoint struct {
	Pos image.Point
	// contains filtered or unexported fields
}

func NewSpawnPoint

func NewSpawnPoint(pos image.Point, mobTime int64) *SpawnPoint

func (*SpawnPoint) ShouldSpawn

func (s *SpawnPoint) ShouldSpawn(tn int64) bool

func (*SpawnPoint) ShouldSpawnNow

func (s *SpawnPoint) ShouldSpawnNow() bool

type World

type World struct {
	// contains filtered or unexported fields
}

func NewWorld

func NewWorld() *World

func (*World) AddPlayer

func (w *World) AddPlayer(p *Player)

func (*World) GetPlayer

func (w *World) GetPlayer(id int64) *Player

Jump to

Keyboard shortcuts

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