C# 클래스 Gruppe22.Backend.NetLogic

All Game Logic events are handled server side -> send / receive events via network instead of handling them locally
상속: Logic, IHandleEvent
파일 보기 프로젝트 열기: propra13-orga/gruppe22

보호된 프로퍼티들

프로퍼티 타입 설명
_network Gruppe22.Client.NetPlayer

공개 메소드들

메소드 설명
HandleEvent ( bool DownStream, Events eventID ) : void

React to incoming events

NetLogic ( IHandleEvent parent, NetPlayer network ) : System

Constructor

RequestMap ( ) : void

Update local version of map

SendChat ( string text ) : void

Exchange text messages

Update ( GameTime gameTime ) : void

Exchange events with server

메소드 상세

HandleEvent() 공개 메소드

React to incoming events
public HandleEvent ( bool DownStream, Events eventID ) : void
DownStream bool
eventID Events
리턴 void

NetLogic() 공개 메소드

Constructor
public NetLogic ( IHandleEvent parent, NetPlayer network ) : System
parent IHandleEvent A local event handler to send messages to
network Gruppe22.Client.NetPlayer The network connection to use for handling events
리턴 System

RequestMap() 공개 메소드

Update local version of map
public RequestMap ( ) : void
리턴 void

SendChat() 공개 메소드

Exchange text messages
public SendChat ( string text ) : void
text string Text to send to other users
리턴 void

Update() 공개 메소드

Exchange events with server
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Current elapsed time
리턴 void

프로퍼티 상세

_network 보호되어 있는 프로퍼티

An object representing the network connection
protected NetPlayer,Gruppe22.Client _network
리턴 Gruppe22.Client.NetPlayer