]> git.sur5r.net Git - c128-kasse/blob - config.c
general und so..
[c128-kasse] / config.c
1 #include <stdlib.h>
2 #include "general.h"
3 #include "config.h"
4
5 unsigned long int money = 0;
6 unsigned long int num_items = 0;
7 unsigned long int items_sold = 0;
8 struct status_t status[MAX_ITEMS+1];
9
10 void load_config();
11
12 void load_items(){
13         char c;
14         num_items=3;
15         status[0].item_name = "cola";
16         status[0].price = 230;
17         status[0].times_sold = 0;
18         status[1].item_name = "mate";
19         status[1].price = 150;
20         status[1].times_sold = 0;
21         for (c = 2; c < MAX_ITEMS; ++c)
22                 status[c].item_name = NULL;
23         
24 }
25 void load_state(){
26         status[0].times_sold=23;        
27         status[1].times_sold=42;        
28 }
29 void save_state(){}