38 static const uint16_t _messages[] = {
85 Log::warn(
"CreateEffect called for unknown being #%d", bid);
97 int16_t intensityX = 0;
98 int16_t intensityY = 0;
ActorSpriteManager * actorSpriteManager
Being * findBeing(int id) const
Returns a specific Being, by id;.
bool trigger(int id, Being *being, int rotation=0)
Triggers a effect with the id, at the specified being, and with the given rotation in degree: 0° = Do...
void addMessageToQueue(const std::string &message, int color=UserPalette::EXP_INFO)
void handleShake(MessageIn &msg)
void handleCreateEffectBeing(MessageIn &msg)
void handleCreateEffectPos(MessageIn &msg)
void handleCreateTextParticle(MessageIn &msg)
void handleMessage(MessageIn &msg) override
Used for parsing an incoming message from manaserv.
uint16_t readInt16()
Reads an unsigned 16-bit integer from the message.
unsigned int getUnreadLength() const
Returns the length of unread data.
std::string readString(int length=-1)
Reads a string.
uint16_t getId() const
Returns the message ID.
const uint16_t * handledMessages
void shakeScreen(int intensity)
Makes the screen shake in a random direction.
EffectManager * effectManager
Viewport * viewport
Viewport on the map.
LocalPlayer * local_player
void warn(const char *log_text,...) LOG_PRINTF_ATTR
@ GPMSG_CREATE_EFFECT_BEING
@ GPMSG_CREATE_TEXT_PARTICLE
@ GPMSG_CREATE_EFFECT_POS