GitHub Repository
Preparing search index...
The search index is not available
Chess Bots
Chess Bots
common/message/robot-message
DriveRobotMessage
Class DriveRobotMessage
Hierarchy
RobotMessage
DriveRobotMessage
StopRobotMessage
Index
Constructors
constructor
Properties
id
left
Power
right
Power
type
Methods
to
Json
to
Obj
Constructors
constructor
new
Drive
Robot
Message
(
id
:
string
, leftPower
:
number
, rightPower
:
number
)
:
DriveRobotMessage
Parameters
id:
string
leftPower:
number
rightPower:
number
Returns
DriveRobotMessage
Properties
Readonly
id
id
:
string
Readonly
left
Power
left
Power
:
number
Readonly
right
Power
right
Power
:
number
Protected
type
type
:
MessageType
= MessageType.DRIVE_ROBOT
Methods
to
Json
to
Json
(
)
:
string
Serializes the message as json.
Returns
string
Protected
to
Obj
to
Obj
(
)
:
object
Returns
object
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
Chess
Bots
For
Contributors
Overview
Architecture
Writing
Tests
Resource
Library
ESP
Development
Overview
Setup
Structure
Packet
Format
Server
Development
Development
Structure
Setup
client/api
client/chessboard/board-
container
client/chessboard/board-
transform
client/chessboard/chessboard-
wrapper
client/chessboard/custom-
square-
context
client/chessboard/custom-
square-
renderer
client/chessboard/svg-
components
client/debug/debug
client/debug/drive-
robot
client/debug/drive-
slider
client/debug/select-
robot
client/debug/set-
robot-
variable
client/debug/simulator
client/game/draw-
dialog
client/game/game
client/game/game-
end-
dialog
client/game/navbar-
menu
client/home
client/main
client/puzzle/puzzle
client/router
client/setup/lobby
client/setup/setup
client/setup/setup-
base
client/setup/setup-
game
client/vite-
env
common/chess-
engine
common/client-
types
common/game-
end-
reasons
common/game-
types
common/message/game-
message
common/message/message
common/message/parse-
message
common/message/robot-
message
common/message/simulator-
message
common/message/test/parse-
message.test
server/api/api
server/api/client-
manager
server/api/game-
manager
server/api/managers
server/api/save-
manager
server/api/socket-
manager
server/api/tcp-
interface
server/command/command
server/command/executor
server/command/move-
command
server/command/move-
piece
server/js-
chess-
engine
server/main
server/robot/grid-
indices
server/robot/position
server/robot/robot
server/robot/robot-
manager
server/simulator
server/utils/env
server/utils/pair
server/utils/square
server/utils/tcp-
packet
server/utils/test/packet.test
server/utils/units
Drive
Robot
Message
constructor
id
left
Power
right
Power
type
to
Json
to
Obj
Generated using
TypeDoc
Serializes the message as json.