|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include <local_connection.h>
Public Member Functions | |
| LocalConnection (const Content &content, std::string name) | |
| void | Poll () override |
| Takes in what's arrived, without waiting. | |
| void | Send (const protocol::Input &input) override |
| bool | connected () const override |
| const protocol::World & | world () const override |
| const std::deque< protocol::Chat > & | chat () const override |
| The newest lines said in the world, oldest first. | |
| int64_t | whole () const override |
| const std::optional< protocol::Move > & | move () const override |
| Where the world's instance told us to go, once it hands its players over. | |
| const protocol::Inventory & | inventory () const override |
| What we carry and wear, as the world last sent it. | |
| const protocol::Quests & | quests () const override |
| const protocol::Guild & | guild () const override |
| Our guild, with no name for none. | |
| const protocol::Trade & | trade () const override |
| Our trade, with nobody in it for none. | |
| const protocol::Duel & | duel () const override |
| Our duel, the same. | |
| std::vector< protocol::Event > | TakeEvents () override |
| std::optional< protocol::GuildInvite > | TakeInvite () override |
| The guild that asked us to join since the last time, once. | |
| Public Member Functions inherited from nanommo::Link | |
| virtual | ~Link ()=default |
A world of the client's own, without a server: the world's library, run in the client at the server's tick, for one player, in the first land. Nothing is saved, and there's nobody else.
Definition at line 25 of file local_connection.h.
| nanommo::LocalConnection::LocalConnection | ( | const Content & | content, |
| std::string | name ) |
Definition at line 40 of file local_connection.cc.
|
inlineoverridevirtual |
The newest lines said in the world, oldest first.
Implements nanommo::Link.
Definition at line 33 of file local_connection.h.
|
inlineoverridevirtual |
Implements nanommo::Link.
Definition at line 31 of file local_connection.h.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Our guild, with no name for none.
Implements nanommo::Link.
Definition at line 38 of file local_connection.h.
|
inlineoverridevirtual |
What we carry and wear, as the world last sent it.
Implements nanommo::Link.
Definition at line 36 of file local_connection.h.
|
inlineoverridevirtual |
Where the world's instance told us to go, once it hands its players over.
Implements nanommo::Link.
Definition at line 35 of file local_connection.h.
|
overridevirtual |
Takes in what's arrived, without waiting.
Implements nanommo::Link.
Definition at line 56 of file local_connection.cc.
|
inlineoverridevirtual |
Implements nanommo::Link.
Definition at line 37 of file local_connection.h.
|
overridevirtual |
Implements nanommo::Link.
Definition at line 68 of file local_connection.cc.
|
overridevirtual |
What happened near us since the last time, oldest first, which it hands over, as each event comes once.
Implements nanommo::Link.
Definition at line 123 of file local_connection.cc.
|
overridevirtual |
The guild that asked us to join since the last time, once.
Implements nanommo::Link.
Definition at line 127 of file local_connection.cc.
|
inlineoverridevirtual |
Our trade, with nobody in it for none.
Implements nanommo::Link.
Definition at line 39 of file local_connection.h.
|
inlineoverridevirtual |
The newest world that's come whole, by when it was sent, for the server to leave out what hasn't changed since.
Implements nanommo::Link.
Definition at line 34 of file local_connection.h.
|
inlineoverridevirtual |
Implements nanommo::Link.
Definition at line 32 of file local_connection.h.