UMoria  5.5.2
 全て データ構造 ファイル 関数 変数 型定義 マクロ定義
関数 | 変数
store2.c
#include "config.h"
#include "constant.h"
#include "types.h"
#include "externs.h"
#include <strings.h>
store2.cのインクルード依存関係図

関数

long atol ()
 
static void prt_comment1 ()
 
static void prt_comment2 (int32 offer, int32 asking, int final)
 
static void prt_comment3 (int32 offer, int32 asking, int final)
 
static void prt_comment4 ()
 
static void prt_comment5 ()
 
static void prt_comment6 ()
 
static void display_commands ()
 
static void haggle_commands (int typ)
 
static void display_inventory (int store_num, int start)
 
static void display_cost (int store_num, int pos)
 
static void store_prt_gold ()
 
static void display_store (int store_num, int cur_top)
 
static int get_store_item (int *com_val, char *pmt, int i, int j)
 
static int increase_insults (int store_num)
 
static void decrease_insults (int store_num)
 
static int haggle_insults (int store_num)
 
static int get_haggle (char *comment, int32 *new_offer, int num_offer)
 
static int receive_offer (int store_num, char *comment, int32 *new_offer, int32 last_offer, int num_offer, int factor)
 
static int purchase_haggle (int store_num, int32 *price, inven_type *item)
 
static int sell_haggle (int store_num, int32 *price, inven_type *item)
 
static int store_purchase (int store_num, int *cur_top)
 
static int store_sell (int store_num, int *cur_top)
 
void enter_store (int store_num)
 

変数

static char * comment1 [14]
 
static char * comment2a [3]
 
static char * comment2b [16]
 
static char * comment3a [3]
 
static char * comment3b [15]
 
static char * comment4a [5]
 
static char * comment4b [5]
 
static char * comment5 [10]
 
static char * comment6 [5]
 
int16 last_store_inc
 

関数

long atol ( )

呼出しグラフ:

static void decrease_insults ( int  store_num)
static

呼出しグラフ:

static void display_commands ( )
static

関数の呼び出しグラフ:

呼出しグラフ:

static void display_cost ( int  store_num,
int  pos 
)
static

関数の呼び出しグラフ:

呼出しグラフ:

static void display_inventory ( int  store_num,
int  start 
)
static

関数の呼び出しグラフ:

呼出しグラフ:

static void display_store ( int  store_num,
int  cur_top 
)
static

関数の呼び出しグラフ:

呼出しグラフ:

void enter_store ( int  store_num)

関数の呼び出しグラフ:

static int get_haggle ( char *  comment,
int32 new_offer,
int  num_offer 
)
static

関数の呼び出しグラフ:

呼出しグラフ:

static int get_store_item ( int *  com_val,
char *  pmt,
int  i,
int  j 
)
static

関数の呼び出しグラフ:

呼出しグラフ:

static void haggle_commands ( int  typ)
static

関数の呼び出しグラフ:

呼出しグラフ:

static int haggle_insults ( int  store_num)
static

関数の呼び出しグラフ:

呼出しグラフ:

static int increase_insults ( int  store_num)
static

関数の呼び出しグラフ:

呼出しグラフ:

static void prt_comment1 ( )
static

関数の呼び出しグラフ:

呼出しグラフ:

static void prt_comment2 ( int32  offer,
int32  asking,
int  final 
)
static

関数の呼び出しグラフ:

呼出しグラフ:

static void prt_comment3 ( int32  offer,
int32  asking,
int  final 
)
static

関数の呼び出しグラフ:

呼出しグラフ:

static void prt_comment4 ( )
static

関数の呼び出しグラフ:

呼出しグラフ:

static void prt_comment5 ( )
static

関数の呼び出しグラフ:

呼出しグラフ:

static void prt_comment6 ( )
static

関数の呼び出しグラフ:

呼出しグラフ:

static int purchase_haggle ( int  store_num,
int32 price,
inven_type item 
)
static

関数の呼び出しグラフ:

呼出しグラフ:

static int receive_offer ( int  store_num,
char *  comment,
int32 new_offer,
int32  last_offer,
int  num_offer,
int  factor 
)
static

関数の呼び出しグラフ:

呼出しグラフ:

static int sell_haggle ( int  store_num,
int32 price,
inven_type item 
)
static

関数の呼び出しグラフ:

呼出しグラフ:

static void store_prt_gold ( )
static

関数の呼び出しグラフ:

呼出しグラフ:

static int store_purchase ( int  store_num,
int *  cur_top 
)
static

関数の呼び出しグラフ:

呼出しグラフ:

static int store_sell ( int  store_num,
int *  cur_top 
)
static

関数の呼び出しグラフ:

呼出しグラフ:

変数

char* comment1[14]
static
初期値:
= {
"Done!", "Accepted!", "Fine.", "Agreed!", "Ok.", "Taken!",
"You drive a hard bargain, but taken.",
"You'll force me bankrupt, but it's a deal.", "Sigh. I'll take it.",
"My poor sick children may starve, but done!", "Finally! I accept.",
"Robbed again.", "A pleasure to do business with you!",
"My spouse will skin me, but accepted."
}
char* comment2a[3]
static
初期値:
= {
"%A2 is my final offer; take it or leave it.",
"I'll give you no more than %A2.",
"My patience grows thin. %A2 is final."
}
char* comment2b[16]
static
初期値:
= {
"%A1 for such a fine item? HA! No less than %A2.",
"%A1 is an insult! Try %A2 gold pieces.",
"%A1?!? You would rob my poor starving children?",
"Why, I'll take no less than %A2 gold pieces.",
"Ha! No less than %A2 gold pieces.",
"Thou knave! No less than %A2 gold pieces.",
"%A1 is far too little, how about %A2?",
"I paid more than %A1 for it myself, try %A2.",
"%A1? Are you mad?!? How about %A2 gold pieces?",
"As scrap this would bring %A1. Try %A2 in gold.",
"May the fleas of 1000 orcs molest you. I want %A2.",
"My mother you can get for %A1, this costs %A2.",
"May your chickens grow lips. I want %A2 in gold!",
"Sell this for such a pittance? Give me %A2 gold.",
"May the Balrog find you tasty! %A2 gold pieces?",
"Your mother was a Troll! %A2 or I'll tell."
}
char* comment3a[3]
static
初期値:
= {
"I'll pay no more than %A1; take it or leave it.",
"You'll get no more than %A1 from me.",
"%A1 and that's final."
}
char* comment3b[15]
static
初期値:
= {
"%A2 for that piece of junk? No more than %A1.",
"For %A2 I could own ten of those. Try %A1.",
"%A2? NEVER! %A1 is more like it.",
"Let's be reasonable. How about %A1 gold pieces?",
"%A1 gold for that junk, no more.",
"%A1 gold pieces and be thankful for it!",
"%A1 gold pieces and not a copper more.",
"%A2 gold? HA! %A1 is more like it.", "Try about %A1 gold.",
"I wouldn't pay %A2 for your children, try %A1.",
"*CHOKE* For that!? Let's say %A1.", "How about %A1?",
"That looks war surplus! Say %A1 gold.",
"I'll buy it as scrap for %A1.",
"%A2 is too much, let us say %A1 gold."
}
char* comment4a[5]
static
初期値:
= {
"ENOUGH! You have abused me once too often!",
"THAT DOES IT! You shall waste my time no more!",
"This is getting nowhere. I'm going home!",
"BAH! No more shall you insult me!",
"Begone! I have had enough abuse for one day."
}
char* comment4b[5]
static
初期値:
= {
"Out of my place!", "out... Out... OUT!!!", "Come back tomorrow.",
"Leave my place. Begone!", "Come back when thou art richer."
}
char* comment5[10]
static
初期値:
= {
"You will have to do better than that!", "That's an insult!",
"Do you wish to do business or not?", "Hah! Try again.",
"Ridiculous!", "You've got to be kidding!", "You'd better be kidding!",
"You try my patience.", "I don't hear you.",
"Hmmm, nice weather we're having."
}
char* comment6[5]
static
初期値:
= {
"I must have heard you wrong.", "What was that?",
"I'm sorry, say that again.", "What did you say?",
"Sorry, what was that again?"
}
int16 last_store_inc