und noch mehr kleinkram

This commit is contained in:
Katja Zedel 2002-05-09 10:42:41 +00:00
parent 4783a38aa6
commit b06c464e4f
7 changed files with 94 additions and 22 deletions

View File

@ -208,7 +208,7 @@ typedef struct curse_unit {
/* ------------------------------------------------------------- */ /* ------------------------------------------------------------- */
typedef int (*cdesc_fun)(const void*, int, curse*, int); typedef int (*cdesc_fun)(const locale *, const void*, int, curse*, int);
typedef struct curse_type { typedef struct curse_type {
const char *cname; /* Name der Zauberwirkung, Identifizierung des curse */ const char *cname; /* Name der Zauberwirkung, Identifizierung des curse */

View File

@ -0,0 +1,53 @@
/* vi: set ts=2:
*
* Eressea PB(E)M host Copyright (C) 1998-2000
* Christian Schlittchen (corwin@amber.kn-bremen.de)
* Katja Zedel (katze@felidae.kn-bremen.de)
* Henning Peters (faroul@beyond.kn-bremen.de)
* Enno Rehling (enno@eressea-pbem.de)
* Ingo Wilken (Ingo.Wilken@informatik.uni-oldenburg.de)
*
* This program may not be used, modified or distributed without
* prior permission by the authors of Eressea.
*/
#include <config.h>
#include "eressea.h"
#include "buildingcurse.h"
/* kernel includes */
#include "message.h"
#include "nrmessage.h"
#include "objtypes.h"
#include "curse.h"
/* util includes */
#include <message.h>
/* libc includes */
#include <string.h>
#include <stdlib.h>
#include <assert.h>
static int
cinfo_building(const locale * lang, void * obj, typ_t typ, curse *c, int self)
{
message * msg;
unused(typ);
assert(typ == TYP_BUILDING);
if (self){
msg = msg_message(mkname("curseinfo", c->type->cname), "id", c->no);
} else {
msg = msg_message(mkname("curseinfo", "buildingunknown"), "id", c->no);
}
nr_render(msg, lang, buf, sizeof(buf), NULL);
msg_release(msg);
return 1;
}
/* CurseInfo mit Spezialabfragen */

View File

@ -0,0 +1,18 @@
/* vi: set ts=2:
*
* Eressea PB(E)M host Copyright (C) 1998-2000
* Christian Schlittchen (corwin@amber.kn-bremen.de)
* Katja Zedel (katze@felidae.kn-bremen.de)
* Henning Peters (faroul@beyond.kn-bremen.de)
* Enno Rehling (enno@eressea-pbem.de)
* Ingo Wilken (Ingo.Wilken@informatik.uni-oldenburg.de)
*
* This program may not be used, modified or distributed without
* prior permission by the authors of Eressea.
*/
#ifndef _BCURSE_H
#define _BCURSE_H
#endif /* _BCURSE_H */

View File

@ -50,7 +50,7 @@ cinfo_region(const locale * lang, void * obj, typ_t typ, curse *c, int self)
/* CurseInfo mit Spezialabfragen */ /* CurseInfo mit Spezialabfragen */
static int static int
cinfo_cursed_by_the_gods(void * obj, typ_t typ, curse *c, int self) cinfo_cursed_by_the_gods(const locale * lang,void * obj, typ_t typ, curse *c, int self)
{ {
region *r; region *r;
message * msg; message * msg;
@ -72,7 +72,7 @@ cinfo_cursed_by_the_gods(void * obj, typ_t typ, curse *c, int self)
} }
/* C_GBDREAM, */ /* C_GBDREAM, */
static int static int
cinfo_dreamcurse(void * obj, typ_t typ, curse *c, int self) cinfo_dreamcurse(const locale * lang,void * obj, typ_t typ, curse *c, int self)
{ {
unused(self); unused(self);
unused(typ); unused(typ);
@ -93,7 +93,7 @@ cinfo_dreamcurse(void * obj, typ_t typ, curse *c, int self)
} }
/* C_MAGICSTREET */ /* C_MAGICSTREET */
static int static int
cinfo_magicstreet(void * obj, typ_t typ, curse *c, int self) cinfo_magicstreet(const locale * lang,void * obj, typ_t typ, curse *c, int self)
{ {
unused(typ); unused(typ);
unused(self); unused(self);

View File

@ -14,10 +14,10 @@
#ifndef _RCURSE_H #ifndef _RCURSE_H
#define _RCURSE_H #define _RCURSE_H
static int cinfo_region(const locale * lang, void * obj, typ_t typ, curse *c, int self); static int cinfo_region(const locale *, void *, typ_t, curse *, int);
static int cinfo_cursed_by_the_gods(void * obj, typ_t typ, curse *c, int self); static int cinfo_cursed_by_the_gods(const locale *, void *, typ_t, curse *, int);
static int cinfo_dreamcurse(void * obj, typ_t typ, curse *c, int self); static int cinfo_dreamcurse(const locale *, void *, typ_t, curse *, int);
static int cinfo_magicstreet(void * obj, typ_t typ, curse *c, int self); static int cinfo_magicstreet(const locale *, void *, typ_t, curse *, int);
#endif /* _RCURSE_H */ #endif /* _RCURSE_H */

View File

@ -13,7 +13,7 @@
#include <config.h> #include <config.h>
#include "eressea.h" #include "eressea.h"
#include "regioncurse.h" #include "shipcurse.h"
/* kernel includes */ /* kernel includes */
#include "message.h" #include "message.h"
@ -72,7 +72,7 @@ cinfo_ship_onlyowner(const locale * lang, void * obj, typ_t typ, curse *c, int s
/* C_SHIP_NODRIFT */ /* C_SHIP_NODRIFT */
static int static int
cinfo_shipnodrift(void * obj, typ_t typ, curse *c, int self) cinfo_shipnodrift(const locale * lang, void * obj, typ_t typ, curse *c, int self)
{ {
ship * sh; ship * sh;
unused(typ); unused(typ);

View File

@ -13,6 +13,7 @@
#include <config.h> #include <config.h>
#include "eressea.h" #include "eressea.h"
#include "unitcurse.h"
/* kernel includes */ /* kernel includes */
#include "message.h" #include "message.h"
@ -70,7 +71,7 @@ cinfo_unit_onlyowner(const locale * lang, void * obj, typ_t typ, curse *c, int s
/* C_AURA */ /* C_AURA */
/* erhöht/senkt regeneration und maxaura um effect% */ /* erhöht/senkt regeneration und maxaura um effect% */
static int static int
cinfo_auraboost(void * obj, typ_t typ, curse *c, int self) cinfo_auraboost(const locale * lang, void * obj, typ_t typ, curse *c, int self)
{ {
unit *u; unit *u;
unused(typ); unused(typ);
@ -92,7 +93,7 @@ cinfo_auraboost(void * obj, typ_t typ, curse *c, int self)
/* C_SLAVE */ /* C_SLAVE */
static int static int
cinfo_slave(void * obj, typ_t typ, curse *c, int self) cinfo_slave(const locale * lang, void * obj, typ_t typ, curse *c, int self)
{ {
unit *u; unit *u;
unused(typ); unused(typ);
@ -110,7 +111,7 @@ cinfo_slave(void * obj, typ_t typ, curse *c, int self)
/* C_CALM */ /* C_CALM */
static int static int
cinfo_calm(void * obj, typ_t typ, curse *c, int self) cinfo_calm(const locale * lang, void * obj, typ_t typ, curse *c, int self)
{ {
unit *u; unit *u;
const race * rc; const race * rc;
@ -137,7 +138,7 @@ cinfo_calm(void * obj, typ_t typ, curse *c, int self)
} }
/* C_SPEED */ /* C_SPEED */
static int static int
cinfo_speed(void * obj, typ_t typ, curse *c, int self) cinfo_speed(const locale * lang, void * obj, typ_t typ, curse *c, int self)
{ {
unit *u; unit *u;
curse_unit * cu; curse_unit * cu;
@ -159,7 +160,7 @@ cinfo_speed(void * obj, typ_t typ, curse *c, int self)
} }
/* C_ORC */ /* C_ORC */
static int static int
cinfo_orc(void * obj, typ_t typ, curse *c, int self) cinfo_orc(const locale * lang, void * obj, typ_t typ, curse *c, int self)
{ {
unit *u; unit *u;
unused(typ); unused(typ);
@ -177,7 +178,7 @@ cinfo_orc(void * obj, typ_t typ, curse *c, int self)
/* C_KAELTESCHUTZ */ /* C_KAELTESCHUTZ */
static int static int
cinfo_kaelteschutz(void * obj, typ_t typ, curse *c, int self) cinfo_kaelteschutz(const locale * lang, void * obj, typ_t typ, curse *c, int self)
{ {
unit *u; unit *u;
curse_unit * cu; curse_unit * cu;
@ -199,7 +200,7 @@ cinfo_kaelteschutz(void * obj, typ_t typ, curse *c, int self)
/* C_SPARKLE */ /* C_SPARKLE */
static int static int
cinfo_sparkle(void * obj, typ_t typ, curse *c, int self) cinfo_sparkle(const locale * lang, void * obj, typ_t typ, curse *c, int self)
{ {
const char * effects[] = { const char * effects[] = {
NULL, /* end grau*/ NULL, /* end grau*/
@ -254,7 +255,7 @@ cinfo_sparkle(void * obj, typ_t typ, curse *c, int self)
/* C_STRENGTH */ /* C_STRENGTH */
static int static int
cinfo_strength(void * obj, typ_t typ, curse *c, int self) cinfo_strength(const locale * lang, void * obj, typ_t typ, curse *c, int self)
{ {
unused(c); unused(c);
unused(typ); unused(typ);
@ -271,7 +272,7 @@ cinfo_strength(void * obj, typ_t typ, curse *c, int self)
} }
/* C_ALLSKILLS */ /* C_ALLSKILLS */
static int static int
cinfo_allskills(void * obj, typ_t typ, curse *c, int self) cinfo_allskills(const locale * lang, void * obj, typ_t typ, curse *c, int self)
{ {
unused(obj); unused(obj);
unused(typ); unused(typ);
@ -287,7 +288,7 @@ cinfo_allskills(void * obj, typ_t typ, curse *c, int self)
} }
/* C_SKILL */ /* C_SKILL */
static int static int
cinfo_skill(void * obj, typ_t typ, curse *c, int self) cinfo_skill(const locale * lang, void * obj, typ_t typ, curse *c, int self)
{ {
unit *u = (unit *)obj; unit *u = (unit *)obj;
int sk = (int)c->data; int sk = (int)c->data;
@ -303,7 +304,7 @@ cinfo_skill(void * obj, typ_t typ, curse *c, int self)
} }
/* C_ITEMCLOAK */ /* C_ITEMCLOAK */
static int static int
cinfo_itemcloak(void * obj, typ_t typ, curse *c, int self) cinfo_itemcloak(const locale * lang, void * obj, typ_t typ, curse *c, int self)
{ {
unit *u; unit *u;
unused(typ); unused(typ);
@ -320,7 +321,7 @@ cinfo_itemcloak(void * obj, typ_t typ, curse *c, int self)
} }
static int static int
cinfo_fumble(void * obj, typ_t typ, curse *c, int self) cinfo_fumble(const locale * lang, void * obj, typ_t typ, curse *c, int self)
{ {
unit * u = (unit*)obj; unit * u = (unit*)obj;
unused(typ); unused(typ);