Download presentation
Presentation is loading. Please wait.
1
3D Game Programming All in One By Kenneth C. Finney
2
Chapter 7 Common Scripts
3
Common Scripts common/main.cs –Executes other scripts –Handles display related command line switches –Initiates initialization scripts
4
Common Scripts common/server/server.cs –Grabs a TCP/IP port –Handles server creation, reset, and destruction –Manages client list –Handles queries from a master server
5
Common Scripts common/server/message.cs –Functions for sending direct messages to clients –Handles chat messages –Monitors message traffic for spam messages (i.e. too many, too quickly, from one player)
6
Common Scripts common/server/missionload.cs –Oversees loading mission files down to clients –Sends mission info to clients for progress display
7
Common Scripts common/server/missiondownload.cs –Server side of the client-server mission download conversation –Series of GameConnection handlers –Download proceeds in phases
8
Common Scripts common/server/clientconnection.cs –Manages and responds to client connections –Provides scoring methods –Clock synchronization –Mission cycling
9
Common Scripts common/server/game.cs –Setup game-related variables after server is created –Mission related game play features –Most routines should be overridden by scripts in the control code
10
Common Scripts common/client/canvas.cs –Create the display window (canvas) –OpenGL setup –Load GUI control definitions
11
Common Scripts common/client/mission.cs –Does some lighting cleanup when mission ends
12
Common Scripts common/client/missiondownload.cs –Client side of the mission downloading conversation –Notifies server when data is received, in a phased manner –Initiates client renderers lighting passes
13
Common Scripts common/client/message.cs –Generic message handlers –Callback (message handler) installation functions
14
Summary Common code base scripts provide administrative and utility functions like: –Creating and destroying servers –Managing player ID lists –Handling server info queries –Basic chat message services –Chat spam control –Mission loading
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.