File: sim.h

package info (click to toggle)
xball 3.0.1-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 936 kB
  • ctags: 964
  • sloc: ansic: 4,612; sh: 3,414; makefile: 521
file content (41 lines) | stat: -rw-r--r-- 1,169 bytes parent folder | download | duplicates (7)
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
/**********************************************************************
 * sim.h - simulation object declarations
 *
 * Copyright 1993, David Nedde
 *
 * Permission to use, copy, modify, and distribute this software
 * and its documentation for any purpose and without fee is granted
 * provided that the above copyright notice appears in all copies.
 * It is provided "as is" without express or implied warranty.
 **********************************************************************/

#ifndef __SIM_H__
#define __SIM_H__

#include <X11/Intrinsic.h>

#include "items.h"
#include "room.h"
#include "demo.h"
#include "menu.h"

typedef struct {
    menu_type    menu;
    items_type   items;
    room_type    room;
    demo_type    demo;

    XtWorkProcId wpid;             /* Work process id */
    int          delay;            /* Amount of delay we should do */
    Bool         step_simulation;  /* True if we are steeping the simulation */
} sim_struct_type, *sim_type;


sim_type sim__create(/*w, items, room*/);
void     sim__destroy(/*sim*/);
void     sim__step_mcb(/*w, sim, call_data, extra*/);
void     sim__halt_mcb(/*w, sim, call_data, extra*/);


#endif