Page:
frdl/entity.h
No results
4
frdl/entity.h
dalmurii edited this page 2026-06-14 11:23:20 +00:00
Entity
엔티티는 게임을 하는 주체이다.
각 엔티티는 덱, 손패, 무덤을 가진다.
세 요소 모두 완전고갈 시 완전 충전을 원칙으로 한다.
손패가 고갈될 경우 덱에서 가져와 전부 채우고, 덱이 고갈될 경우 무덤에서 가져와 전부 채운다.
struct frdl_entity { char m_name[MAX_FRDL_ENTITY_NAME + 1]; char m_display[MAX_FRDL_ENTITY_DISPLAY + 1]; frdl_unit_t m_num_deck, m_num_hand, m_num_grave; frdl_unit_t m_max_deck, m_max_hand; struct frdl_card m_deck[MAX_FRDL_ENTITY_DECK]; struct frdl_card m_grave[MAX_FRDL_ENTITY_HAND]; struct frdl_card m_hand[MAX_FRDL_ENTITY_HAND]; };
FRDLE0
frdl_entity_use_one_card
h_caller의 손패의 c_idx_caller 위치에 있는 카드를 사용하고 해당 카드를 무덤에 올린다.
h_callee는 직접적인 영향을 받는다.
ae2f_extern frdl_cgotolbl_t FRDLE0( const h_frdl_entity_t h_caller, const h_frdl_entity_t h_callee, const frdl_unit_t c_idx_caller, const h_frdl_t h_frdl, const frdl_cgotolbl_t c_lbl_again, const frdl_cgotolbl_t c_lbl_pass, const frdl_cgotolbl_t c_lbl_fail );
FRDLE1
frdl_entity_draw_hand
h의 덱에서 손패를 불러온다.
ae2f_extern void FRDLE1( const h_frdl_entity_t h );
FRDLE2
frdl_entity_draw_deck
h의 무덤에서 덱을 들고 온다.
ae2f_extern void FRDLE2( const h_frdl_entity_t h );