model

package
v0.0.0-...-9c029b6 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BroadcastMessage

func BroadcastMessage(from types.Character, message string)

func CharacterWeight

func CharacterWeight(character types.Character) int

func CharactersIn

func CharactersIn(roomId types.Id) types.CharacterList

func CountItemsIn

func CountItemsIn(containerId types.Id) int

func CreateArea

func CreateArea(name string, zone types.Zone) (types.Area, error)

func CreateEffect

func CreateEffect(name string) types.Effect

func CreateItem

func CreateItem(templateId types.Id) types.Item

func CreateNpc

func CreateNpc(name string, roomId types.Id, spawnerId types.Id) types.NPC

func CreatePlayerCharacter

func CreatePlayerCharacter(name string, userId types.Id, startingRoom types.Room) types.PC

func CreateRoom

func CreateRoom(zone types.Zone, location types.Coordinate) (types.Room, error)

func CreateSkill

func CreateSkill(name string) types.Skill

func CreateSpawner

func CreateSpawner(name string, areaId types.Id) types.Spawner

func CreateStore

func CreateStore(name string, roomId types.Id) types.Store

func CreateTemplate

func CreateTemplate(name string) types.Template

func CreateUser

func CreateUser(name string, password string, admin bool) types.User

func CreateZone

func CreateZone(name string) (types.Zone, error)

func DeleteArea

func DeleteArea(areaId types.Id)

func DeleteCharacter

func DeleteCharacter(charId types.Id)

func DeleteEffect

func DeleteEffect(id types.Id)

func DeleteItem

func DeleteItem(itemId types.Id)

func DeleteItems

func DeleteItems(items types.ItemList)

func DeleteRoom

func DeleteRoom(room types.Room)

func DeleteSkill

func DeleteSkill(id types.Id)

func DeleteStore

func DeleteStore(id types.Id)

func DeleteTemplate

func DeleteTemplate(id types.Id)

func DeleteUser

func DeleteUser(userId types.Id)

func DeleteZone

func DeleteZone(zoneId types.Id)

func DirectionBetween

func DirectionBetween(from, to types.Room) types.Direction

func Emote

func Emote(from types.Character, message string)

func FindObjectByName

func FindObjectByName(name string, objectType types.ObjectType) types.Id

func GetAllEffects

func GetAllEffects() types.EffectList

func GetAllSkills

func GetAllSkills() types.SkillList

func GetAllTemplates

func GetAllTemplates() types.TemplateList

func GetArea

func GetArea(id types.Id) types.Area

func GetAreaByName

func GetAreaByName(name string) types.Area

func GetAreaRooms

func GetAreaRooms(areaId types.Id) types.RoomList

func GetAreaSpawners

func GetAreaSpawners(areaId types.Id) types.SpawnerList

func GetAreas

func GetAreas(zone types.Zone) types.AreaList

func GetCharacterByName

func GetCharacterByName(name string) types.Character

func GetEffect

func GetEffect(id types.Id) types.Effect

func GetEffectByName

func GetEffectByName(name string) types.Effect

func GetEffects

func GetEffects(EffectIds []types.Id) types.EffectList

func GetItem

func GetItem(id types.Id) types.Item

func GetNeighbors

func GetNeighbors(room types.Room) []types.Room

func GetNpc

func GetNpc(id types.Id) types.NPC

func GetNpcByName

func GetNpcByName(name string) types.NPC

func GetNpcs

func GetNpcs() types.NPCList

func GetOnlinePlayerCharacters

func GetOnlinePlayerCharacters() []types.PC

func GetOrCreatePlayerCharacter

func GetOrCreatePlayerCharacter(name string, userId types.Id, startingRoom types.Room) types.PC

func GetPlayerCharacter

func GetPlayerCharacter(id types.Id) types.PC

func GetPlayerCharacterByName

func GetPlayerCharacterByName(name string) types.PC

func GetRoom

func GetRoom(id types.Id) types.Room

func GetRoomByLocation

func GetRoomByLocation(coordinate types.Coordinate, zoneId types.Id) types.Room

func GetRooms

func GetRooms() types.RoomList

func GetRoomsInZone

func GetRoomsInZone(zoneId types.Id) types.RoomList

func GetSkill

func GetSkill(id types.Id) types.Skill

func GetSkillByName

func GetSkillByName(name string) types.Skill

func GetSkills

func GetSkills(SkillIds []types.Id) types.SkillList

func GetSpawner

func GetSpawner(id types.Id) types.Spawner

func GetSpawnerNpcs

func GetSpawnerNpcs(spawnerId types.Id) types.NPCList

func GetSpawners

func GetSpawners() types.SpawnerList

func GetStore

func GetStore(id types.Id) types.Store

func GetTemplate

func GetTemplate(id types.Id) types.Template

func GetTemplateItems

func GetTemplateItems(templateId types.Id) types.ItemList

func GetUser

func GetUser(id types.Id) types.User

func GetUserByName

func GetUserByName(username string) types.User

func GetUserCharacters

func GetUserCharacters(userId types.Id) types.PCList

func GetUsers

func GetUsers() types.UserList

func GetWorld

func GetWorld() types.World

func GetZone

func GetZone(id types.Id) types.Zone

func GetZoneByName

func GetZoneByName(name string) types.Zone

func GetZones

func GetZones() types.ZoneList

func ItemWeight

func ItemWeight(item types.Item) int

func ItemsIn

func ItemsIn(containerId types.Id) types.ItemList

func Login

func Login(character types.PC)

func Logout

func Logout(character types.PC)

func MoveCharacter

func MoveCharacter(character types.Character, direction types.Direction) error

func MoveCharacterToRoom

func MoveCharacterToRoom(character types.Character, newRoom types.Room)

func NpcsIn

func NpcsIn(roomId types.Id) types.NPCList

func PlayerCharactersIn

func PlayerCharactersIn(roomId types.Id, except types.Id) types.PCList

func Say

func Say(from types.Character, message string)

func StoreIn

func StoreIn(roomId types.Id) types.Store

func Tell

func Tell(from types.Character, to types.Character, message string)

func UserCount

func UserCount() int

func ZoneCorners

func ZoneCorners(zone types.Zone) (types.Coordinate, types.Coordinate)

Types

This section is empty.

Jump to

Keyboard shortcuts

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