/*---------------------------------------------------------------------------
 *
 * ブローカーお店デザイン
 *
 * $Id: ac_broker_design.h,v 1.1 2003/06/06 00:15:11 tong Exp $
 * Program:Hiromichi Miyake
 *
 *---------------------------------------------------------------------------*/
#ifndef AC_BROKER_DESIGNh
#define AC_BROKER_DESIGNh

#ifdef _LANGUAGE_C_PLUS_PLUS
extern "C" {
#endif
    
#include "m_basic.h"
/*------------------------------------------
 *
 * ブローカーお店 デザイン プロフィール
 *
 *------------------------------------------*/
extern Actor_profile	Broker_Design_Profile;


/*-----------------------------------------------------------
 *
 * ブローカーお店デザイン クリップ
 *
 *-----------------------------------------------------------*/
/* ユニット番号から家具item_no獲得 */
typedef mAc_nfs_t (*aBD_get_no)(int	unit_x,
				int	unit_z );
/* ユニット番号で売った家具を報告 */
typedef int (*aBD_set_sale)(int		unit_x,
			    int		unit_z );
/* クリップ登録用 */
typedef struct _broker_design_clip_ {
    aBD_get_no		get_no;
    aBD_set_sale	set_sale;
    
} aBD_clip_c;

/*-----------------------------------------------------------
 *
 * ブローカーお店デザイン アクタクラス
 *
 *-----------------------------------------------------------*/
typedef struct __broker_design_class__ {
    ACTOR	actor_cl;
    aBD_clip_c	clip;
    
} BROKER_DESIGN_ACTOR;


/*-----------------------------------------------------------
 *
 * ブローカーお店デザイン クリップ 呼び出しマクロ
 *
 *-----------------------------------------------------------*/
/* クリップ登録チェック */
#define aBD_PROC_CHECK	(ZCommonGet(clip.bd_clip))
			 
/* ユニット番号から家具item_no獲得 */
#define aBD_UNIT_NUM_2_FTR_NUM(unit_x,unit_z)	\
((ZCommonGet(clip.bd_clip->get_no))(unit_x, unit_z))
    
/* ユニット番号で売った家具を報告 */
#define aBD_REPORT_FTR_SALE(unit_x,unit_z)	\
    ((ZCommonGet(clip.bd_clip->set_sale))(unit_x, unit_z))
    
#ifdef _LANGUAGE_C_PLUS_PLUS
} 
#endif
#endif



