Options
All
  • Public
  • Public/Protected
  • All
Menu

책임 : 자기 avatar 의 모든 정보를 가지고 있고, update 가 호출되면 현재 위치, 방향 등의 정보를 업데이트함 내부적으로 AudioAnalyser 를 가지고 연결된 peer 들에게 전송해야 되는 데이터를 output 함

Hierarchy

  • Me

Implements

Index

Constructors

constructor

  • new Me(nicknameDiv: HTMLDivElement, textMessageDiv: HTMLDivElement, audioAnalyser: AudioAnalyser, centerPos: Vec2, nickname?: string, textMessage: string, avatar?: AvatarImageEnum, velocity?: number): Me

Properties

Private _nickname

_nickname: string

Private _textMessage

_textMessage: string

audioAnalyser

audioAnalyser: AudioAnalyser

avatar

avatarFace

avatarFace: AvatarFaceEnum

avatarFaceScale

avatarFaceScale: number

centerPos

centerPos: Vec2

isMoving

isMoving: boolean

Private lastUpdateTimeStamp

lastUpdateTimeStamp: number

lookLeft

lookLeft: boolean

nextNormalizedDirectionVector

nextNormalizedDirectionVector: Vec2

nicknameDiv

nicknameDiv: HTMLDivElement

Private normalizedDirectionVector

normalizedDirectionVector: Vec2

partRotatedegree

partRotatedegree: number[]

rotateCounterclockwise

rotateCounterclockwise: boolean

textMessageDiv

textMessageDiv: HTMLDivElement

Private Readonly velocity

velocity: number

Accessors

nickname

  • get nickname(): string
  • set nickname(nickname: string): void

textMessage

  • get textMessage(): string
  • set textMessage(textMessage: string): void

Methods

getPlayerDto

setAnalyser

Generated using TypeDoc