/* Copyright (c) 1998-2010, Enno Rehling Katja Zedel 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 /* Welchen Teil des Silbers die Bauern fuer Unterhaltung ausgeben (1/20), und * wiviel Silber ein Unterhalter pro Talentpunkt bekommt. */ /* Wieviele Silbermuenzen jeweils auf einmal "getaxed" werden. */ #define TAXFRACTION 10 /* Wieviel Silber pro Talentpunkt geklaut wird. */ #define STEALINCOME 50 /* Teil der Bauern, welche Luxusgueter kaufen und verkaufen (1/100). */ #define TRADE_FRACTION 100 extern int income(const struct unit *u); /* Wieviel Fremde eine Partei pro Woche aufnehmen kann */ #define MAXNEWBIES 5 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 }; void maintain_buildings(struct region *r, bool crash); extern void add_spende(struct faction *f1, struct faction *f2, int betrag, struct region *r); extern int make_cmd(struct unit *u, struct order *ord); extern void split_allocations(struct region *r); extern int recruit_archetypes(void); extern int give_control_cmd(struct unit *u, struct order *ord); extern void give_control(struct unit * u, struct unit * u2); struct message * check_steal(const struct unit * u, struct order *ord); struct message * check_give(const struct unit * u, const struct unit * u2, struct order *ord); #ifdef __cplusplus } #endif #endif