File: objtypes.h

package info (click to toggle)
sludge 2.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 6,844 kB
  • ctags: 2,981
  • sloc: cpp: 31,952; sh: 1,259; xml: 874; makefile: 672
file content (22 lines) | stat: -rw-r--r-- 561 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
struct combination {
	int withObj, funcNum;
};

struct objectType {
	char * screenName;
	int objectNum;
	objectType * next;
	unsigned char r, g, b;
	int numCom;
	int speechGap, walkSpeed, wrapSpeech, spinSpeed;
	unsigned short int flags;
	combination * allCombis;
};

bool initObjectTypes ();
objectType * findObjectType (int i);
objectType * loadObjectType (int i);
int getCombinationFunction (int a, int b);
void removeObjectType (objectType * oT);
void saveObjectRef (objectType * r, FILE * fp);
objectType * loadObjectRef (FILE * fp);