mud

package
v0.0.0-...-d150683 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDungeon

func InitDungeon()

InitDungeon will create a new instance of a dungeon

func Move

Move will move the player in a specified direction. It will also prevent the player from moving off the array

func Register

Register will add a username to the map

Types

type MudSpace

type MudSpace [][]*Place

MudSpace is an alias for a 2D array of placess

type Place

type Place struct {
	Name    string
	Players map[string]*Player
	// contains filtered or unexported fields
}

Place is an struct of a place

type Player

type Player struct {
	Username     string
	CurrentPlace *Place
}

Player is an struct of a player

Jump to

Keyboard shortcuts

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