File: nPlayBHelp.c

package info (click to toggle)
conquest 8.1-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 7,984 kB
  • ctags: 3,086
  • sloc: ansic: 39,393; sh: 8,540; yacc: 446; makefile: 296; lex: 146
file content (66 lines) | stat: -rw-r--r-- 1,161 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/* 
 * nCP help node
 *
 * $Id: nPlayBHelp.c,v 1.6 2004/09/04 07:38:02 jon Exp $
 *
 * Copyright 1999-2004 Jon Trulson under the ARTISTIC LICENSE. (See LICENSE).
 */

#include "c_defs.h"
#include "context.h"
#include "global.h"
#include "datatypes.h"
#include "color.h"
#include "conf.h"
#include "conqcom.h"
#include "gldisplay.h"
#include "node.h"
#include "client.h"
#include "packet.h"
#include "ui.h"

#include "nCP.h"
#include "nDead.h"
#include "nPlayB.h"
#include "nPlayBHelp.h"

static int nPlayBHelpDisplay(dspConfig_t *);
static int nPlayBHelpInput(int ch);

static scrNode_t nPlayBHelpNode = {
  nPlayBHelpDisplay,            /* display */
  NULL,                         /* idle */
  nPlayBHelpInput,               /* input */
  NULL                          /* next */
};


scrNode_t *nPlayBHelpInit(int setnode)
{
  if (setnode)
    setNode(&nPlayBHelpNode);

  return(&nPlayBHelpNode);
}


static int nPlayBHelpDisplay(dspConfig_t *dsp)
{

  dspReplayHelp();

  cprintf(MSG_LIN2, 0, ALIGN_CENTER, MTXT_DONE);
  
  return NODE_OK;
}  

static int nPlayBHelpInput(int ch)
{
  /* go back */

  setONode(NULL);
  nPlayBInit();

  return NODE_OK;
}