Skip to content
lzbk edited this page Feb 7, 2013 · 9 revisions

(This is a stub) All the entities present in the "world" are identified, how do these work ?

##What are entities? Everything that is not part of the map itself is an entity (player, chest, item, npc, mob). They all extend the two Entity classes (client / server). Even the sprites indicating the damage of a weapon stroke have ids. Tiles also have ideas but they are probably not to be mistaken with entity ids, they are described [[here|Create a map using Tiled Map Editor]].

##What about their ids? There does not seem to be a centralized entity table that would lease entity IDs. There is therefore a different format for different type of IDs. To be more convenient, the ID is passed to the constructor of the entity as a string and is parsed into an integer by the constructor.

##ID formats list: We'll sort the items depending whether their ID is set on the server or client side: ###Server side * ###Client side

Clone this wiki locally