144145146147148149150
*/ public void setSprite(int sprite) { m_sprite = sprite; //Inform everyone of sprite change if(m_map != null) m_map.sendToAll(new SpriteChangeMessage(m_id, this.getSprite())); }
295296297298299300301
* @param b */ public void setSurfing(boolean b) { m_isSurfing = b; if(m_map != null) m_map.sendToAll(new SpriteChangeMessage(m_id, this.getSprite())); }
1596159715981599160016011602
/** * Updates the client with their sprite */ public void updateClientSprite() { TcpProtocolHandler.writeMessage(m_tcpSession, new SpriteChangeMessage(m_id, m_sprite)); }