C# 클래스 Universe.BotManager.BotManager

상속: INonSharedRegionModule, IBotManager
파일 보기 프로젝트 열기: Virtual-Universe/Virtual-Universe

공개 메소드들

메소드 설명
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