C# Класс Universe.BotManager.BotManager

Наследование: INonSharedRegionModule, IBotManager
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AddRegion() публичный Метод

public AddRegion ( IScene scene ) : void
scene IScene
Результат void

AddTagToBot() публичный Метод

public AddTagToBot ( UUID botID, string tag, UUID userAttempting ) : void
botID UUID
tag string
userAttempting UUID
Результат void

CheckPermission() публичный Метод

Checks for permission to command a bot.
public CheckPermission ( UUID botID, UUID userAttempting ) : bool
botID UUID BotID.
userAttempting UUID User attempting.
Результат bool

Close() публичный Метод

public Close ( ) : void
Результат void

CreateAvatar() публичный Метод

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
Результат UUID

CreateAvatar() публичный Метод

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
Результат UUID

CreateCharacter() публичный Метод

public CreateCharacter ( UUID primID, IScene scene ) : void
primID UUID
scene IScene
Результат void

FollowAvatar() публичный Метод

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
Результат void

GetBotsWithTag() публичный Метод

public GetBotsWithTag ( string tag ) : List
tag string
Результат List

GetCharacterManager() публичный Метод

public GetCharacterManager ( UUID primID ) : IBotController
primID UUID
Результат IBotController

GetOwner() публичный Метод

Gets the owner.
public GetOwner ( UUID botID ) : UUID
botID UUID BotID.
Результат UUID

GetPosition() публичный Метод

Gets the bot position.
public GetPosition ( UUID botID, UUID userAttempting ) : System.Vector3
botID UUID Bot ID.
userAttempting UUID User attempting.
Результат System.Vector3

GetRotation() публичный Метод

public GetRotation ( UUID botID, UUID userAttempting ) : Quaternion
botID UUID
userAttempting UUID
Результат Quaternion

Initialize() публичный Метод

public Initialize ( IConfigSource source ) : void
source IConfigSource
Результат void

MoveToTarget() публичный Метод

public MoveToTarget ( UUID botID, System.Vector3 destination, int options, UUID userAttempting ) : void
botID UUID
destination System.Vector3
options int
userAttempting UUID
Результат void

PauseMovement() публичный Метод

public PauseMovement ( UUID botID, UUID userAttempting ) : void
botID UUID
userAttempting UUID
Результат void

RegionLoaded() публичный Метод

public RegionLoaded ( IScene scene ) : void
scene IScene
Результат void

RemoveAllTagsFromBot() публичный Метод

public RemoveAllTagsFromBot ( UUID botID, UUID userAttempting ) : void
botID UUID
userAttempting UUID
Результат void

RemoveAvatar() публичный Метод

public RemoveAvatar ( UUID avatarID, IScene scene, UUID userAttempting ) : void
avatarID UUID
scene IScene
userAttempting UUID
Результат void

RemoveBots() публичный Метод

public RemoveBots ( string tag, UUID userAttempting ) : void
tag string
userAttempting UUID
Результат void

RemoveCharacter() публичный Метод

public RemoveCharacter ( UUID primID ) : void
primID UUID
Результат void

RemoveRegion() публичный Метод

public RemoveRegion ( IScene scene ) : void
scene IScene
Результат void

RemoveTagFromBot() публичный Метод

public RemoveTagFromBot ( UUID botID, string tag, UUID userAttempting ) : void
botID UUID
tag string
userAttempting UUID
Результат void

ResumeMovement() публичный Метод

public ResumeMovement ( UUID botID, UUID userAttempting ) : void
botID UUID
userAttempting UUID
Результат void

SendChatMessage() публичный Метод

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
Результат void

SendIM() публичный Метод

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
Результат void

SetAvatarAppearance() публичный Метод

public SetAvatarAppearance ( UUID botID, AvatarAppearance avatarApp, IScene scene ) : bool
botID UUID
avatarApp Universe.Framework.ClientInterfaces.AvatarAppearance
scene IScene
Результат bool

SetBotMap() публичный Метод

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
Результат void

SetBotShouldFly() публичный Метод

public SetBotShouldFly ( UUID botID, bool shouldFly, UUID userAttempting ) : void
botID UUID
shouldFly bool
userAttempting UUID
Результат void

SetMovementSpeedMod() публичный Метод

Speed up or slow down the bot
public SetMovementSpeedMod ( UUID botID, float modifier, UUID userAttempting ) : void
botID UUID
modifier float
userAttempting UUID
Результат void

SetSpeed() публичный Метод

public SetSpeed ( UUID botID, UUID userAttempting, float speedModifier ) : void
botID UUID
userAttempting UUID
speedModifier float
Результат void

StopFollowAvatar() публичный Метод

Stops following the given user
public StopFollowAvatar ( UUID botID, UUID userAttempting ) : void
botID UUID
userAttempting UUID
Результат void

StopMoving() публичный Метод

public StopMoving ( UUID botID, UUID userAttempting ) : void
botID UUID
userAttempting UUID
Результат void

WalkTo() публичный Метод

public WalkTo ( UUID botID, System.Vector3 destination, UUID userAttempting ) : void
botID UUID
destination System.Vector3
userAttempting UUID
Результат void