eolib-cpp 0.1.0-beta.7
Core C++ library for writing Endless Online applications
Loading...
Searching...
No Matches
eolib::protocol::map Namespace Reference

Endless Map Files (eolib::protocol::map::Emf), and the structs and enums they use. More...

Classes

class  MapNpc
 NPC spawn EMF entity. More...
class  MapLegacyDoorKey
 Legacy EMF entity used to specify a key on a door. More...
class  MapItem
 Item spawn EMF entity. More...
class  MapWarp
 Warp EMF entity. More...
class  MapSign
 Sign EMF entity. More...
class  MapTileSpecRowTile
 A single tile in a row of tilespecs. More...
class  MapTileSpecRow
 A row of tilespecs. More...
class  MapWarpRowTile
 A single tile in a row of warp entities. More...
class  MapWarpRow
 A row of warp entities. More...
class  MapGraphicRowTile
 A single tile in a row of map graphics. More...
class  MapGraphicRow
 A row in a layer of map graphics. More...
class  MapGraphicLayer
 A layer of map graphics. More...
class  Emf
 Endless Map File. More...

Enumerations

enum class  MapType : int { Normal = 0 , Pk = 3 }
enum class  MapTimedEffect : int {
  None = 0 , HpDrain = 1 , TpDrain = 2 , Quake1 = 3 ,
  Quake2 = 4 , Quake3 = 5 , Quake4 = 6
}
 A timed effect that can occur on a map. More...
enum class  MapMusicControl : int {
  InterruptIfDifferentPlayOnce = 0 , InterruptPlayOnce = 1 , FinishPlayOnce = 2 , InterruptIfDifferentPlayRepeat = 3 ,
  InterruptPlayRepeat = 4 , FinishPlayRepeat = 5 , InterruptPlayNothing = 6
}
 How background music should be played on a map. More...
enum class  MapTileSpec : int {
  Wall = 0 , ChairDown = 1 , ChairLeft = 2 , ChairRight = 3 ,
  ChairUp = 4 , ChairDownRight = 5 , ChairUpLeft = 6 , ChairAll = 7 ,
  Reserved8 = 8 , Chest = 9 , Reserved10 = 10 , Reserved11 = 11 ,
  Reserved12 = 12 , Reserved13 = 13 , Reserved14 = 14 , Reserved15 = 15 ,
  BankVault = 16 , NpcBoundary = 17 , Edge = 18 , FakeWall = 19 ,
  Board1 = 20 , Board2 = 21 , Board3 = 22 , Board4 = 23 ,
  Board5 = 24 , Board6 = 25 , Board7 = 26 , Board8 = 27 ,
  Jukebox = 28 , Jump = 29 , Water = 30 , Reserved31 = 31 ,
  Arena = 32 , AmbientSource = 33 , TimedSpikes = 34 , Spikes = 35 ,
  HiddenSpikes = 36
}
 The type of a tile on a map. More...

Functions

std::string ToString (MapType value)
 Gets the name of a MapType value.
std::ostream & operator<< (std::ostream &stream, MapType value)
 Writes the name of a MapType value to a stream.
std::string ToString (MapTimedEffect value)
 Gets the name of a MapTimedEffect value.
std::ostream & operator<< (std::ostream &stream, MapTimedEffect value)
 Writes the name of a MapTimedEffect value to a stream.
std::string ToString (MapMusicControl value)
 Gets the name of a MapMusicControl value.
std::ostream & operator<< (std::ostream &stream, MapMusicControl value)
 Writes the name of a MapMusicControl value to a stream.
std::string ToString (MapTileSpec value)
 Gets the name of a MapTileSpec value.
std::ostream & operator<< (std::ostream &stream, MapTileSpec value)
 Writes the name of a MapTileSpec value to a stream.

Detailed Description

Endless Map Files (eolib::protocol::map::Emf), and the structs and enums they use.

Enumeration Type Documentation

◆ MapType

enum class eolib::protocol::map::MapType : int
strong
Enumerator
Normal 
Pk 

◆ MapTimedEffect

enum class eolib::protocol::map::MapTimedEffect : int
strong

A timed effect that can occur on a map.

Enumerator
None 
HpDrain 
TpDrain 
Quake1 
Quake2 
Quake3 
Quake4 

◆ MapMusicControl

enum class eolib::protocol::map::MapMusicControl : int
strong

How background music should be played on a map.

Enumerator
InterruptIfDifferentPlayOnce 
InterruptPlayOnce 
FinishPlayOnce 
InterruptIfDifferentPlayRepeat 
InterruptPlayRepeat 
FinishPlayRepeat 
InterruptPlayNothing 

◆ MapTileSpec

enum class eolib::protocol::map::MapTileSpec : int
strong

The type of a tile on a map.

Enumerator
Wall 
ChairDown 
ChairLeft 
ChairRight 
ChairUp 
ChairDownRight 
ChairUpLeft 
ChairAll 
Reserved8 

Used internally in the official server.

Chest 
Reserved10 

Used internally in the official server.

Reserved11 

Used internally in the official server.

Reserved12 

Used internally in the official server.

Reserved13 
Reserved14 
Reserved15 
BankVault 
NpcBoundary 
Edge 
FakeWall 
Board1 
Board2 
Board3 
Board4 
Board5 
Board6 
Board7 
Board8 
Jukebox 
Jump 
Water 
Reserved31 

"Deep Water" according to vult-r. No behavior in the official client.

Arena 
AmbientSource 
TimedSpikes 
Spikes 
HiddenSpikes 

Function Documentation

◆ ToString() [1/4]

std::string eolib::protocol::map::ToString ( MapType value)

Gets the name of a MapType value.

Parameters
valuethe value to get the name of.
Returns
the name of the value, or "Unrecognized(N)" for unrecognized values.

◆ operator<<() [1/4]

std::ostream & eolib::protocol::map::operator<< ( std::ostream & stream,
MapType value )

Writes the name of a MapType value to a stream.

Parameters
streamthe stream to write to.
valuethe value to write the name of.
Returns
the stream.
See also
ToString(MapType)

◆ ToString() [2/4]

std::string eolib::protocol::map::ToString ( MapTimedEffect value)

Gets the name of a MapTimedEffect value.

Parameters
valuethe value to get the name of.
Returns
the name of the value, or "Unrecognized(N)" for unrecognized values.

◆ operator<<() [2/4]

std::ostream & eolib::protocol::map::operator<< ( std::ostream & stream,
MapTimedEffect value )

Writes the name of a MapTimedEffect value to a stream.

Parameters
streamthe stream to write to.
valuethe value to write the name of.
Returns
the stream.
See also
ToString(MapTimedEffect)

◆ ToString() [3/4]

std::string eolib::protocol::map::ToString ( MapMusicControl value)

Gets the name of a MapMusicControl value.

Parameters
valuethe value to get the name of.
Returns
the name of the value, or "Unrecognized(N)" for unrecognized values.

◆ operator<<() [3/4]

std::ostream & eolib::protocol::map::operator<< ( std::ostream & stream,
MapMusicControl value )

Writes the name of a MapMusicControl value to a stream.

Parameters
streamthe stream to write to.
valuethe value to write the name of.
Returns
the stream.
See also
ToString(MapMusicControl)

◆ ToString() [4/4]

std::string eolib::protocol::map::ToString ( MapTileSpec value)

Gets the name of a MapTileSpec value.

Parameters
valuethe value to get the name of.
Returns
the name of the value, or "Unrecognized(N)" for unrecognized values.

◆ operator<<() [4/4]

std::ostream & eolib::protocol::map::operator<< ( std::ostream & stream,
MapTileSpec value )

Writes the name of a MapTileSpec value to a stream.

Parameters
streamthe stream to write to.
valuethe value to write the name of.
Returns
the stream.
See also
ToString(MapTileSpec)