2010-08-08 10:06:34 +02:00
|
|
|
/*
|
2015-01-30 22:10:29 +01:00
|
|
|
Copyright (c) 1998-2015, Enno Rehling <enno@eressea.de>
|
2015-01-30 20:37:14 +01:00
|
|
|
Katja Zedel <katze@felidae.kn-bremen.de
|
|
|
|
Christian Schlittchen <corwin@amber.kn-bremen.de>
|
2010-08-08 10:06:34 +02:00
|
|
|
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
|
|
purpose with or without fee is hereby granted, provided that the above
|
|
|
|
copyright notice and this permission notice appear in all copies.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef H_GC_ECONOMY
|
|
|
|
#define H_GC_ECONOMY
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-01-30 20:37:14 +01:00
|
|
|
/* Welchen Teil des Silbers die Bauern fuer Unterhaltung ausgeben (1/20), und
|
|
|
|
* wiviel Silber ein Unterhalter pro Talentpunkt bekommt. */
|
2010-08-08 10:06:34 +02:00
|
|
|
|
2015-01-30 20:37:14 +01:00
|
|
|
/* Wieviele Silbermuenzen jeweils auf einmal "getaxed" werden. */
|
2010-08-08 10:06:34 +02:00
|
|
|
|
|
|
|
#define TAXFRACTION 10
|
|
|
|
|
2015-01-30 20:37:14 +01:00
|
|
|
/* Wieviel Silber pro Talentpunkt geklaut wird. */
|
2010-08-08 10:06:34 +02:00
|
|
|
|
|
|
|
#define STEALINCOME 50
|
|
|
|
|
2015-01-30 20:37:14 +01:00
|
|
|
/* Teil der Bauern, welche Luxusgueter kaufen und verkaufen (1/100). */
|
2010-08-08 10:06:34 +02:00
|
|
|
|
|
|
|
#define TRADE_FRACTION 100
|
|
|
|
|
2015-01-30 20:37:14 +01:00
|
|
|
/* Wieviel Fremde eine Partei pro Woche aufnehmen kann */
|
2010-08-08 10:06:34 +02:00
|
|
|
#define MAXNEWBIES 5
|
|
|
|
|
2014-11-03 09:55:29 +01:00
|
|
|
struct unit;
|
|
|
|
struct region;
|
|
|
|
struct faction;
|
2014-11-03 17:32:55 +01:00
|
|
|
struct order;
|
|
|
|
struct message;
|
2015-11-14 15:32:31 +01:00
|
|
|
struct request;
|
2014-11-03 17:32:55 +01:00
|
|
|
|
2014-11-03 09:55:29 +01:00
|
|
|
int income(const struct unit *u);
|
|
|
|
|
2014-09-15 15:51:40 +02:00
|
|
|
void economics(struct region *r);
|
|
|
|
void produce(struct region *r);
|
|
|
|
void auto_work(struct region *r);
|
|
|
|
|
|
|
|
enum { IC_WORK, IC_ENTERTAIN, IC_TAX, IC_TRADE, IC_TRADETAX, IC_STEAL, IC_MAGIC, IC_LOOT };
|
|
|
|
void maintain_buildings(struct region *r, bool crash);
|
2015-01-30 20:37:14 +01:00
|
|
|
int make_cmd(struct unit *u, struct order *ord);
|
|
|
|
void split_allocations(struct region *r);
|
|
|
|
int give_control_cmd(struct unit *u, struct order *ord);
|
|
|
|
void give_control(struct unit * u, struct unit * u2);
|
2015-11-14 15:32:31 +01:00
|
|
|
void tax_cmd(struct unit * u, struct order *ord, struct request ** taxorders);
|
|
|
|
void expandtax(struct region * r, struct request * taxorders);
|
2014-09-15 15:51:40 +02:00
|
|
|
|
|
|
|
struct message * check_steal(const struct unit * u, struct order *ord);
|
2014-07-06 05:14:11 +02:00
|
|
|
|
2010-08-08 10:06:34 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|