C# Class CPlayerAgent, freegostop

Exibir arquivo Open project: sunduk/freegostop Class Usage Examples

Public Methods

Method Description
CPlayerAgent ( byte player_index ) : System
add_bomb_count ( byte count ) : void
add_card_to_floor ( CCard card ) : void
add_card_to_hand ( CCard card ) : void
calculate_score ( ) : void
can_finish ( ) : bool
decrease_bomb_count ( ) : bool
find_same_cards_from_hand ( byte number ) : List
get_card_count ( PAE_TYPE pae_type, CARD_STATUS status ) : byte
get_pee_count ( ) : byte
get_same_card_count_from_hand ( byte number ) : byte
is_empty_on_hand ( ) : bool
kookjin_selected ( ) : void
move_kookjin_to_pee ( ) : void
plus_go_count ( ) : void
plus_ppuk_count ( ) : void
plus_shaking_count ( ) : void
pop_all_cards_from_hand ( byte card_number ) : List
pop_card_from_floor ( byte pee_count_to_want ) : List
pop_card_from_hand ( byte card_number, PAE_TYPE pae_type, byte position ) : CCard
reset ( ) : void

매판 시작 전 초기화 해야 할 변수들.

sort_player_hand_slots ( ) : void

플레이어의 패를 번호 순서에 따라 오름차순 정렬 한다.

Private Methods

Method Description
find_cards ( PAE_TYPE pae_type ) : List
get_score_by_type ( PAE_TYPE pae_type ) : short
pop_specific_card_from_floor ( PAE_TYPE pae_type, CARD_STATUS status ) : CCard

Method Details

CPlayerAgent() public method

public CPlayerAgent ( byte player_index ) : System
player_index byte
return System

add_bomb_count() public method

public add_bomb_count ( byte count ) : void
count byte
return void

add_card_to_floor() public method

public add_card_to_floor ( CCard card ) : void
card CCard
return void

add_card_to_hand() public method

public add_card_to_hand ( CCard card ) : void
card CCard
return void

calculate_score() public method

public calculate_score ( ) : void
return void

can_finish() public method

public can_finish ( ) : bool
return bool

decrease_bomb_count() public method

public decrease_bomb_count ( ) : bool
return bool

find_same_cards_from_hand() public method

public find_same_cards_from_hand ( byte number ) : List
number byte
return List

get_card_count() public method

public get_card_count ( PAE_TYPE pae_type, CARD_STATUS status ) : byte
pae_type PAE_TYPE
status CARD_STATUS
return byte

get_pee_count() public method

public get_pee_count ( ) : byte
return byte

get_same_card_count_from_hand() public method

public get_same_card_count_from_hand ( byte number ) : byte
number byte
return byte

is_empty_on_hand() public method

public is_empty_on_hand ( ) : bool
return bool

kookjin_selected() public method

public kookjin_selected ( ) : void
return void

move_kookjin_to_pee() public method

public move_kookjin_to_pee ( ) : void
return void

plus_go_count() public method

public plus_go_count ( ) : void
return void

plus_ppuk_count() public method

public plus_ppuk_count ( ) : void
return void

plus_shaking_count() public method

public plus_shaking_count ( ) : void
return void

pop_all_cards_from_hand() public method

public pop_all_cards_from_hand ( byte card_number ) : List
card_number byte
return List

pop_card_from_floor() public method

public pop_card_from_floor ( byte pee_count_to_want ) : List
pee_count_to_want byte
return List

pop_card_from_hand() public method

public pop_card_from_hand ( byte card_number, PAE_TYPE pae_type, byte position ) : CCard
card_number byte
pae_type PAE_TYPE
position byte
return CCard

reset() public method

매판 시작 전 초기화 해야 할 변수들.
public reset ( ) : void
return void

sort_player_hand_slots() public method

플레이어의 패를 번호 순서에 따라 오름차순 정렬 한다.
public sort_player_hand_slots ( ) : void
return void