Click or drag to resize

HandleClient Class

TCP Client Class
Inheritance Hierarchy
SystemObject
  INF1771_GameClient.SocketHandleClient

Namespace:  INF1771_GameClient.Socket
Assembly:  INF1771_GameClient (in INF1771_GameClient.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class HandleClient

The HandleClient type exposes the following members.

Constructors
  NameDescription
Public methodHandleClient
Initializes a new instance of the HandleClient class
Top
Methods
  NameDescription
Public methodconnect
Connects socket to a url or ip address
Public methoddisconnect
Disconnects socket
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodKeepAlive
Keep socket alive - verify current status
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodsendBackward
Send a player backward command
Public methodsendColor(Color)
Change player color (Color)
Public methodsendColor(Int32, Int32, Int32)
Change player color (R, G, B)
Public methodsendForward
Send a player forward command
Public methodsendGetItem
Send a player get item command
Public methodsendGoodbye
Quit game
Public methodsendMsg
Send a raw command to the server
Public methodsendName
Change player name
Public methodsendRequestGameStatus
Request game status
Public methodsendRequestObservation
Request observation
Public methodsendRequestPosition
Request player position
Public methodsendRequestScoreboard
Request server scoreboard
Public methodsendRequestUserStatus
Request user status
Public methodsendSay
Send a message to all players
Public methodsendShoot
Send a player fire command
Public methodsendTurnLeft
Send a player turn left command
Public methodsendTurnRight
Send a player turn right command
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventStatic memberChangeStatusEvent
Status Change Event Handler
Public eventStatic memberCommandEvent
Command Event Handler
Top
Fields
  NameDescription
Public fieldactive
Is Client Active?
Public fieldconnected
Is Client Connected?
Top
See Also