Exemple #1
0
 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);
 }
Exemple #2
0
        public void SendCreatureUpdateHealth(Creature creature)
        {
            NetworkMessage outMessage = new NetworkMessage();

            CreatureHealthPacket.Add(
                outMessage,
                creature.Id,
                creature.HealthPercent);

            Send(outMessage);
        }
Exemple #3
0
 public void SendCreatureTurn(Creature creature)
 {
     NetworkMessage message = new NetworkMessage();
     CreatureTurnPacket.Add(
         message,
         creature
     );
     Send(message);
 }
Exemple #4
0
 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);
 }
Exemple #5
0
 public void SendCreatureRemove(Creature creature)
 {
     NetworkMessage message = new NetworkMessage();
     TileRemoveThingPacket.Add(
         message,
         creature.Tile.Location,
         creature.Tile.GetStackPosition(creature)
     );
     Send(message);
 }
Exemple #6
0
        public void SendCreatureChangeSpeed(Creature creature)
        {
            NetworkMessage message = new NetworkMessage();

            CreatureChangeSpeedPacket.Add(
                message,
                creature
            );

            Send(message);
        }