Atavism Version 2018.1AGIS API

atavism.server.voice
Class PositionalGroupMember

java.lang.Object
  extended by atavism.server.voice.GroupMember
      extended by atavism.server.voice.PositionalGroupMember

public class PositionalGroupMember
extends GroupMember

A class that extends GroupMmeber to hold the members in radius of this member.


Field Summary
 Point lastLoc
          The last interpolated location of the world node.
 java.util.Set<PositionalGroupMember> membersInRadius
          The set of GroupMembers within the audible radius of this member
 java.util.Set<OID> perceivedOids
          The set of object oids perceived by this member.
 Point previousLoc
          The previous interpolated location of the entity, used to detect if the entity has moved.
 InterpolatedWorldNode wnode
          The world node for this group member.
 
Fields inherited from class atavism.server.voice.GroupMember
allowedSpeaker, currentSpeaker, expunged, group, index, indexCounter, listening, memberCon, memberOid, priority, priorityIndex, voiceNumber
 
Constructor Summary
PositionalGroupMember(VoiceGroup group, OID memberOid, int priority, boolean allowedSpeaker, boolean currentSpeaker, VoiceConnection memberCon, int maxVoiceChannels)
          PositionalGroupMember constructor
 
Method Summary
 Point getCurrentLoc()
          Return the member's current location, or null, if he has none.
 OID getInstanceOid()
          Return the instance oid, if the member has a wnode.
 
Methods inherited from class atavism.server.voice.GroupMember
addIgnoredSpeakerOids, applyIgnoreUpdateMessage, findFreeVoiceNumber, findVoiceNumberForSpeaker, getExpunged, getGroup, getGroupOid, getMemberOid, getSpeakerForVoiceNumber, initializeIgnoredSpeakers, logString, membersListeningToSpeaker, nowListeningTo, removeIgnoredSpeakerOids, setExpunged, setSpeakerForVoiceNumber, speakerIgnored, toString, voiceCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

wnode

public InterpolatedWorldNode wnode
The world node for this group member. If it is null, then the member has despawned, presumably because it is moving to a different instance.


lastLoc

public Point lastLoc
The last interpolated location of the world node.


previousLoc

public Point previousLoc
The previous interpolated location of the entity, used to detect if the entity has moved.


perceivedOids

public java.util.Set<OID> perceivedOids
The set of object oids perceived by this member.


membersInRadius

public java.util.Set<PositionalGroupMember> membersInRadius
The set of GroupMembers within the audible radius of this member

Constructor Detail

PositionalGroupMember

public PositionalGroupMember(VoiceGroup group,
                             OID memberOid,
                             int priority,
                             boolean allowedSpeaker,
                             boolean currentSpeaker,
                             VoiceConnection memberCon,
                             int maxVoiceChannels)
PositionalGroupMember constructor

Parameters:
group - The group to which the member belongs.
memberOid - The oid of the new member.
priority - The speaking priority that the member should be assigned; speakers with higher priorities will be heard over speakers with lower priorities.
allowedSpeaker - True if the new member should be allowed to speak; false otherwise.
currentSpeaker - True if the new member should be created speaking.
memberCon - The VoiceConnection object that embodies the connection to the voice server.
maxVoiceChannels - The maximum number of simultaneous voice channels going to any listener.
Method Detail

getInstanceOid

public OID getInstanceOid()
Return the instance oid, if the member has a wnode.

Returns:
The instance oid of the instance the member belongs to.

getCurrentLoc

public Point getCurrentLoc()
Return the member's current location, or null, if he has none.

Returns:
The location of the member.


Copyright © 2018 Dragonsan Studios Sp. z o.o.