C# Class Universe.BotManager.BotManager

Inheritance: INonSharedRegionModule, IBotManager
Mostrar archivo Open project: Virtual-Universe/Virtual-Universe

Public Methods

Method Description
AddRegion ( IScene scene ) : void
AddTagToBot ( UUID botID, string tag, UUID userAttempting ) : void
CheckPermission ( UUID botID, UUID userAttempting ) : bool

Checks for permission to command a bot.

Close ( ) : void
CreateAvatar ( string firstName, string lastName, IScene scene, AvatarAppearance avatarApp, UUID creatorID, System.Vector3 startPos ) : UUID
CreateAvatar ( string firstName, string lastName, IScene scene, UUID cloneAppearanceFrom, UUID creatorID, System.Vector3 startPos ) : UUID

Creates a new bot in world

CreateCharacter ( UUID primID, IScene scene ) : void
FollowAvatar ( UUID botID, string avatarName, float startFollowDistance, float endFollowDistance, bool requireLOS, System.Vector3 offsetFromAvatar, UUID userAttempting ) : void

Begins to follow the given user

GetBotsWithTag ( string tag ) : List
GetCharacterManager ( UUID primID ) : IBotController
GetOwner ( UUID botID ) : UUID

Gets the owner.

GetPosition ( UUID botID, UUID userAttempting ) : System.Vector3

Gets the bot position.

GetRotation ( UUID botID, UUID userAttempting ) : Quaternion
Initialize ( IConfigSource source ) : void
MoveToTarget ( UUID botID, System.Vector3 destination, int options, UUID userAttempting ) : void
PauseMovement ( UUID botID, UUID userAttempting ) : void
RegionLoaded ( IScene scene ) : void
RemoveAllTagsFromBot ( UUID botID, UUID userAttempting ) : void
RemoveAvatar ( UUID avatarID, IScene scene, UUID userAttempting ) : void
RemoveBots ( string tag, UUID userAttempting ) : void
RemoveCharacter ( UUID primID ) : void
RemoveRegion ( IScene scene ) : void
RemoveTagFromBot ( UUID botID, string tag, UUID userAttempting ) : void
ResumeMovement ( UUID botID, UUID userAttempting ) : void
SendChatMessage ( UUID botID, string message, int sayType, int channel, UUID userAttempting ) : void

Sends a chat message to all clients

SendIM ( UUID botID, UUID toUser, string message, UUID userAttempting ) : void

Sends a chat message to all clients

SetAvatarAppearance ( UUID botID, AvatarAppearance avatarApp, IScene scene ) : bool
SetBotMap ( UUID botID, List positions, List mode, int flags, UUID userAttempting ) : void

Sets up where the bot should be walking

SetBotShouldFly ( UUID botID, bool shouldFly, UUID userAttempting ) : void
SetMovementSpeedMod ( UUID botID, float modifier, UUID userAttempting ) : void

Speed up or slow down the bot

SetSpeed ( UUID botID, UUID userAttempting, float speedModifier ) : void
StopFollowAvatar ( UUID botID, UUID userAttempting ) : void

Stops following the given user

StopMoving ( UUID botID, UUID userAttempting ) : void
WalkTo ( UUID botID, System.Vector3 destination, UUID userAttempting ) : void

Private Methods

Method Description
AddAndWaitUntilAgentIsAdded ( IScene scene, BotClientAPI mCharacter ) : void
CheckPermission ( Bot bot, UUID userAttempting ) : bool
CheckPermission ( IEntity sp, UUID userAttempting ) : bool
GetAppearance ( UUID targetID, IScene scene ) : AvatarAppearance

Finds the given users appearance

Method Details

AddRegion() public method

public AddRegion ( IScene scene ) : void
scene IScene
return void

AddTagToBot() public method

public AddTagToBot ( UUID botID, string tag, UUID userAttempting ) : void
botID UUID
tag string
userAttempting UUID
return void

CheckPermission() public method

Checks for permission to command a bot.
public CheckPermission ( UUID botID, UUID userAttempting ) : bool
botID UUID BotID.
userAttempting UUID User attempting.
return bool

Close() public method

public Close ( ) : void
return void

CreateAvatar() public method

public CreateAvatar ( string firstName, string lastName, IScene scene, AvatarAppearance avatarApp, UUID creatorID, System.Vector3 startPos ) : UUID
firstName string
lastName string
scene IScene
avatarApp Universe.Framework.ClientInterfaces.AvatarAppearance
creatorID UUID
startPos System.Vector3
return UUID

CreateAvatar() public method

Creates a new bot in world
public CreateAvatar ( string firstName, string lastName, IScene scene, UUID cloneAppearanceFrom, UUID creatorID, System.Vector3 startPos ) : UUID
firstName string
lastName string
scene IScene
cloneAppearanceFrom UUID UUID of the avatar who's appearance will be copied to give this bot an appearance
creatorID UUID
startPos System.Vector3
return UUID

CreateCharacter() public method

public CreateCharacter ( UUID primID, IScene scene ) : void
primID UUID
scene IScene
return void

FollowAvatar() public method

Begins to follow the given user
public FollowAvatar ( UUID botID, string avatarName, float startFollowDistance, float endFollowDistance, bool requireLOS, System.Vector3 offsetFromAvatar, UUID userAttempting ) : void
botID UUID
avatarName string
startFollowDistance float
endFollowDistance float
requireLOS bool
offsetFromAvatar System.Vector3
userAttempting UUID
return void

GetBotsWithTag() public method

public GetBotsWithTag ( string tag ) : List
tag string
return List

GetCharacterManager() public method

public GetCharacterManager ( UUID primID ) : IBotController
primID UUID
return IBotController

GetOwner() public method

Gets the owner.
public GetOwner ( UUID botID ) : UUID
botID UUID BotID.
return UUID

GetPosition() public method

Gets the bot position.
public GetPosition ( UUID botID, UUID userAttempting ) : System.Vector3
botID UUID Bot ID.
userAttempting UUID User attempting.
return System.Vector3

GetRotation() public method

public GetRotation ( UUID botID, UUID userAttempting ) : Quaternion
botID UUID
userAttempting UUID
return Quaternion

Initialize() public method

public Initialize ( IConfigSource source ) : void
source IConfigSource
return void

MoveToTarget() public method

public MoveToTarget ( UUID botID, System.Vector3 destination, int options, UUID userAttempting ) : void
botID UUID
destination System.Vector3
options int
userAttempting UUID
return void

PauseMovement() public method

public PauseMovement ( UUID botID, UUID userAttempting ) : void
botID UUID
userAttempting UUID
return void

RegionLoaded() public method

public RegionLoaded ( IScene scene ) : void
scene IScene
return void

RemoveAllTagsFromBot() public method

public RemoveAllTagsFromBot ( UUID botID, UUID userAttempting ) : void
botID UUID
userAttempting UUID
return void

RemoveAvatar() public method

public RemoveAvatar ( UUID avatarID, IScene scene, UUID userAttempting ) : void
avatarID UUID
scene IScene
userAttempting UUID
return void

RemoveBots() public method

public RemoveBots ( string tag, UUID userAttempting ) : void
tag string
userAttempting UUID
return void

RemoveCharacter() public method

public RemoveCharacter ( UUID primID ) : void
primID UUID
return void

RemoveRegion() public method

public RemoveRegion ( IScene scene ) : void
scene IScene
return void

RemoveTagFromBot() public method

public RemoveTagFromBot ( UUID botID, string tag, UUID userAttempting ) : void
botID UUID
tag string
userAttempting UUID
return void

ResumeMovement() public method

public ResumeMovement ( UUID botID, UUID userAttempting ) : void
botID UUID
userAttempting UUID
return void

SendChatMessage() public method

Sends a chat message to all clients
public SendChatMessage ( UUID botID, string message, int sayType, int channel, UUID userAttempting ) : void
botID UUID
message string
sayType int
channel int
userAttempting UUID
return void

SendIM() public method

Sends a chat message to all clients
public SendIM ( UUID botID, UUID toUser, string message, UUID userAttempting ) : void
botID UUID
toUser UUID
message string
userAttempting UUID
return void

SetAvatarAppearance() public method

public SetAvatarAppearance ( UUID botID, AvatarAppearance avatarApp, IScene scene ) : bool
botID UUID
avatarApp Universe.Framework.ClientInterfaces.AvatarAppearance
scene IScene
return bool

SetBotMap() public method

Sets up where the bot should be walking
public SetBotMap ( UUID botID, List positions, List mode, int flags, UUID userAttempting ) : void
botID UUID ID of the bot
positions List List of positions the bot will move to
mode List List of what the bot should be doing in between the positions
flags int
userAttempting UUID
return void

SetBotShouldFly() public method

public SetBotShouldFly ( UUID botID, bool shouldFly, UUID userAttempting ) : void
botID UUID
shouldFly bool
userAttempting UUID
return void

SetMovementSpeedMod() public method

Speed up or slow down the bot
public SetMovementSpeedMod ( UUID botID, float modifier, UUID userAttempting ) : void
botID UUID
modifier float
userAttempting UUID
return void

SetSpeed() public method

public SetSpeed ( UUID botID, UUID userAttempting, float speedModifier ) : void
botID UUID
userAttempting UUID
speedModifier float
return void

StopFollowAvatar() public method

Stops following the given user
public StopFollowAvatar ( UUID botID, UUID userAttempting ) : void
botID UUID
userAttempting UUID
return void

StopMoving() public method

public StopMoving ( UUID botID, UUID userAttempting ) : void
botID UUID
userAttempting UUID
return void

WalkTo() public method

public WalkTo ( UUID botID, System.Vector3 destination, UUID userAttempting ) : void
botID UUID
destination System.Vector3
userAttempting UUID
return void