source: titan/plugins/catcatch/catcatch.c @ 16964

Last change on this file since 16964 was 16964, checked in by nit, 11 years ago

[titan] add catcatch game plugin

File size: 1.1 KB
Line 
1/*****************************************************/
2/* this file is part of the tiTan / tiTanNIT Project */
3/* and allowed only for use with this.               */
4/*                                                   */
5/* copyright by NIT                                  */
6/*****************************************************/
7
8#include "../titan/struct.h"
9#include "../titan/debug.h"
10#include "../titan/header.h"
11#include "catcatch.h"
12
13char pluginname[] = "Cat Catch";
14char plugindesc[] = "Cat Catch";
15char pluginpic[] = "%pluginpath%/catcatch/plugin.png";
16
17int pluginaktiv = 0;
18
19//wird beim laden ausgefuehrt
20void init(void)
21{
22        char* tmpstr = NULL;
23
24        tmpstr = ostrcat(getconfig("pluginpath", NULL), "/catcatch/skin.xml", 0, 0);
25        readscreen(tmpstr, 241, 1);
26        free(tmpstr); tmpstr = NULL;
27
28        pluginaktiv = 1;
29        debug(10, "Cat Catch Plugin loadet !!!");
30}
31
32//wird beim entladen ausgefuehrt
33void deinit(void)
34{
35        delmarkedscreen(241);
36        pluginaktiv = 0;
37        debug(10, "Cat Catch Plugin removed !!!");
38}
39
40//wird in der Pluginverwaltung bzw Menue ausfeguehrt
41void start(void)
42{
43        screencatcatch();
44}
Note: See TracBrowser for help on using the repository browser.