home *** CD-ROM | disk | FTP | other *** search
/ 3D Game Programming All in One / 3D Game Programming All in One Disc.iso / 3D2E / RESOURCES / KOOB / control / client / client.cs next >
Encoding:
Text File  |  2006-09-25  |  1.3 KB  |  57 lines

  1. //============================================================================
  2. // control/client/client.cs
  3. //  Copyright (c) 2003, 2006 by Kenneth C. Finney.
  4. //============================================================================
  5. function LaunchGame()
  6. {
  7.      StopMusic();
  8.   /// createServer("SinglePlayer", "control/data/maps/book_ch6.mis");
  9.    createServer("SinglePlayer", "control/data/maps/trackB.mis");
  10.    %conn = new GameConnection(ServerConnection);
  11.    %conn.setConnectArgs("Reader");
  12.    %conn.connectLocal();
  13. }
  14. function ShowMenuScreen()
  15. {
  16.    // Start up the client with the menu...
  17.    Canvas.setContent( MenuScreen );
  18.    Canvas.setCursor("DefaultCursor");
  19. }
  20. function SplashScreenInputCtrl::onInputEvent(%this, %dev, %evt, %make)
  21. {
  22.    if(%make)
  23.    {
  24.      ShowMenuScreen();
  25.    }
  26. }
  27. //============================================================================
  28. // stubs
  29. //============================================================================
  30. function onServerMessage()
  31. {
  32. }
  33. function onMissionDownloadPhase1()
  34. {
  35. }
  36. function onPhase1Progress()
  37. {
  38. }
  39. function onPhase1Complete()
  40. {
  41. }
  42. function onMissionDownloadPhase2()
  43. {
  44. }
  45. function onPhase2Progress()
  46. {
  47. }
  48. function onPhase2Complete()
  49. {
  50. }
  51. function onPhase3Complete()
  52. {
  53. }
  54. function onMissionDownloadComplete()
  55. {
  56. }
  57.