Noble Ape
The Central Directories of the Noble Ape Simulation.
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
noble
shared.h
Go to the documentation of this file.
1
/****************************************************************
2
3
shared.h
4
5
=============================================================
6
7
Copyright 1996-2014 Tom Barbalet. All rights reserved.
8
9
Permission is hereby granted, free of charge, to any person
10
obtaining a copy of this software and associated documentation
11
files (the "Software"), to deal in the Software without
12
restriction, including without limitation the rights to use,
13
copy, modify, merge, publish, distribute, sublicense, and/or
14
sell copies of the Software, and to permit persons to whom the
15
Software is furnished to do so, subject to the following
16
conditions:
17
18
The above copyright notice and this permission notice shall be
19
included in all copies or substantial portions of the Software.
20
21
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28
OTHER DEALINGS IN THE SOFTWARE.
29
30
This software and Noble Ape are a continuing work of Tom Barbalet,
31
begun on 13 June 1996. No apes or cats were harmed in the writing
32
of this software.
33
34
****************************************************************/
35
36
#ifndef NOBLEAPE_SHARED_H
37
#define NOBLEAPE_SHARED_H
38
39
#ifndef _WIN32
40
41
#include "../noble/noble.h"
42
43
#else
44
45
#include "..\noble\noble.h"
46
47
#endif
48
49
typedef
enum
{
50
SHARED_CYCLE_OK
= 0,
51
SHARED_CYCLE_QUIT
,
52
SHARED_CYCLE_DEBUG_OUTPUT
53
}
shared_cycle_state
;
54
55
56
typedef
enum
{
57
SSS_OPEN
= 0,
58
SSS_OPEN_SCRIPT
,
59
SSS_SAVED
60
}
shared_saved_string_type
;
61
62
void
shared_saved_string
(
shared_saved_string_type
ssst,
n_string
value);
63
64
shared_cycle_state
shared_cycle
(
n_uint
ticks,
n_byte
fIdentification,
n_int
dim_x,
n_int
dim_y);
65
66
n_int
shared_init
(
n_byte
view,
n_uint
random);
67
68
void
shared_close
(
void
);
69
70
n_int
shared_menu
(
n_int
menuValue);
71
72
n_uint
shared_max_fps
(
void
);
73
74
void
shared_rotate
(
n_double
num,
n_byte
wwind);
75
76
void
shared_keyReceived
(
n_byte2
value,
n_byte
fIdentification);
77
void
shared_keyUp
(
void
);
78
79
void
shared_mouseOption
(
n_byte
option);
80
void
shared_mouseReceived
(
n_int
valX,
n_int
valY,
n_byte
fIdentification);
81
void
shared_mouseUp
(
void
);
82
83
void
shared_about
(
n_constant_string
value);
84
85
void
shared_draw
(
n_byte
* outputBuffer,
n_byte
fIdentification,
n_int
dim_x,
n_int
dim_y);
86
87
n_int
shared_new
(
n_uint
seed);
88
89
n_byte
shared_openFileName
(
n_string
cStringFileName,
n_byte
isScript);
90
91
void
shared_saveFileName
(
n_string
cStringFileName);
92
93
void
shared_script_debug_handle
(
n_string
cStringFileName);
94
95
#ifndef _WIN32
96
97
n_int
sim_thread_console_quit
(
void
);
98
99
#endif
100
101
#endif
/* NOBLEAPE_SHARED_H */
Generated on Tue Oct 14 2014 20:57:38 for Noble Ape by
1.8.1.1