Class PlayerChatBucket
java.lang.Object
games.stendhal.server.entity.player.PlayerChatBucket
- Direct Known Subclasses:
AdminChatBucket
a bucket to manage chat traffic shaping.
- Author:
- hendrik
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkAndAdd(int length)
checks that the bucket is not full, yet and adds the turn in case there is still room.
-
Constructor Details
-
PlayerChatBucket
public PlayerChatBucket()
-
-
Method Details
-
checkAndAdd
public boolean checkAndAdd(int length)checks that the bucket is not full, yet and adds the turn in case there is still room.- Parameters:
length
- length of chat message- Returns:
- true if the bucket is not full, yet; false otherwise.
-