|
Public Member Functions |
| | RemoteBot (string name, BotSkin skin, BotColour colour, string server) |
| | Constructor for creating a new Remote Bot.
|
| | RemoteBot (string name, BotSkin skin, BotColour colour, string server, OutputLevel outputLevel) |
| | Constructor for creating a new Remote Bot.
|
| | RemoteBot (string name, BotSkin skin, BotColour colour, string server, TextWriter outputWriter, OutputLevel outputLevel) |
| | Constructor for creating a new Remote Bot.
|
| void | DisconnectFromServer () |
| | Disconnects this bot form the Game and Map Servers.
|
Protected Member Functions |
| abstract void | PerformActions () |
| | Method to be overriden in the child class This is where the programmer must add the main functionality to make the bot work. They can use CurrentGameState, LevelMap and BotCommands It is called about twice a second.
|
| virtual void | PickedUpItem (UTItem item) |
| | Your bot has just picked up a new item.
|
| virtual void | HitWall (UTVector locationOfBot, UTVector normalOfCollision) |
| | Your bot has just collided with a wall.
|
| virtual void | HitLedge (UTVector locationOfBot, bool isAlreadyFalling) |
| | Your bot has just hit a ledge, If walking, will not fall. If running, you are already falling by the time you get this.
|
| virtual void | BumpedActor (string actorID, UTVector locationOfActor) |
| | Your bot bumped into another actor, could be a player or another blocking object such as a moving door.
|
| virtual void | HeardPickup (string byBotID, UTVector location) |
| | Your bot heard someone pickup an item.
|
| virtual void | HeardNoise (string botID, UTVector location) |
| | Your bot heard a noise made by another player. Maybe another player walking or shooting.
|
| virtual void | IncomingProjectile (float timeUntilImpact, UTVector fromLocation) |
| | There is an incoming projectile likely to hit you. May give you a chance to dodge.
|
| virtual void | AnotherBotDied (string deadBotID, string killerID, string damageType) |
| | Some other bot just died.
|
| virtual void | WasKilled (string killerID, string damageType) |
| | Your bot just died.
|
| virtual void | TookDamage (int amount, string damageType, string instigator, UTVector fromLocation) |
| | Your bot just took some damage.
|
| virtual void | ShotAnotherBot (string botHitID, int amountOfDamage, string damageType) |
| | Your bot just shot another bot.
|
| virtual void | NewGlobalChatMessage (string message) |
| | Someone just said something in the global chat channel.
|
| virtual void | PathReceieved (string requestID, UTNavPoint[] path) |
| | A series of path nodes which have been returned in response to a GetPathTo() call to the server.
|
Properties |
| UTMap | LevelMap |
| | The UTMap of the current level, containing the locations of all inventory pickups and navigation points.
|
| BotCommands | BotCommands |
| | Contains methods that can be called to make your Bot perform actions in the game.
|
| GameState | CurrentGameState |
| | The GameState at this specific moment in time. Includes all currently visible pickups, navigation points and opponents.
|
| UTBotSelfState | Self |
| | The current status of your Bot.
|
| TextWriter | Output |
| | The TextWriter for the output of this bot.
|
Private Member Functions |
| bool | ConnectToMapServer () |
| bool | ConnectToGameServer () |
| void | ProcessInfoMessage (UTMessage infoMsg) |
| void | ParseMapInfo () |
| void | MessageLoop () |
| | Main Running method that constantly loops round collecting the messages from the server The messages are then acted upon. An Asynchronus message makes the appropriet virtual method get called A Synchronus message will be shunnted off to the GameState so it can update itself.
|
| void | PerformGameOver () |
Static Private Member Functions |
| static UTNavPoint[] | GetPathNodes (UTMessage pathMsg) |
Private Attributes |
| UTVisConnection | visCommunicator |
| UTConnection | gameCommunicator |
| string | agentName |
| BotSkin | agentSkin |
| BotColour | agentColour |
| string | uniqueID |
| UTMap | map |
| UTBotSelfState | myState |
| GameState | currentState |
| Thread | messageLoopThread |
| Queue< UTMessage > | messageQueue = new Queue<UTMessage>(UTConnection.MAX_MESSAGES) |
| Queue< UTMessage > | messageQueueASync = new Queue<UTMessage>(UTConnection.MAX_MESSAGES) |
| OutputLevel | outputLevel |
| TextWriter | output |
| BotCommands | botCommands |