public void SendTileAddCreature(Creature creature) { NetworkMessage message = new NetworkMessage(); uint remove; bool known = IsCreatureKnown(creature.Id, out remove); TileAddCreaturePacket.Add( message, creature.Tile.Location, creature.Tile.GetStackPosition(creature), creature, known, remove ); Send(message); }
public void SendCreatureUpdateHealth(Creature creature) { NetworkMessage outMessage = new NetworkMessage(); CreatureHealthPacket.Add( outMessage, creature.Id, creature.HealthPercent); Send(outMessage); }
public void SendCreatureTurn(Creature creature) { NetworkMessage message = new NetworkMessage(); CreatureTurnPacket.Add( message, creature ); Send(message); }
public void SendCreatureSpeech(Creature creature, SpeechType speechType, string message) { NetworkMessage outMessage = new NetworkMessage(); CreatureSpeechPacket.Add( outMessage, creature.Name, 1, speechType, message, creature.Tile.Location, ChatChannel.None, 0000 ); Send(outMessage); }
public void SendCreatureRemove(Creature creature) { NetworkMessage message = new NetworkMessage(); TileRemoveThingPacket.Add( message, creature.Tile.Location, creature.Tile.GetStackPosition(creature) ); Send(message); }
public void SendCreatureChangeSpeed(Creature creature) { NetworkMessage message = new NetworkMessage(); CreatureChangeSpeedPacket.Add( message, creature ); Send(message); }