C# 클래스 CGameRoom, freegostop

파일 보기 프로젝트 열기: sunduk/freegostop 1 사용 예제들

공개 메소드들

메소드 설명
CGameRoom ( CLocalServer, server ) : System
add_player ( CPlayer, newbie ) : void
on_player_put_card ( byte player_index, byte card_number, PAE_TYPE pae_type, byte position, byte slot_index, byte is_shaking ) : void
on_ready_req ( ) : void
on_receive ( CPlayer, owner, CPacket msg ) : void

비공개 메소드들

메소드 설명
add_choice_card_info_to ( CPacket msg ) : void
add_flip_result_to ( CPacket msg ) : void
add_others_card_result_to ( CPacket msg ) : void
add_player_get_cards_info_to ( CPacket msg ) : void
add_player_select_result_to ( CPacket msg, byte slot_index ) : void
add_turn_result_to ( CPacket msg, byte current_turn_player_index ) : void
all_received ( PROTOCOL protocol ) : bool
broadcast_game_result ( ) : void
broadcast_go_count ( CPlayer, player ) : void
broadcast_move_kookjin ( byte who ) : void
check_game_finish ( ) : void
checked_protocol ( byte player_index, PROTOCOL protocol ) : void
clear_received_protocol ( ) : void
get_aiplayer_delay ( CPlayer, current_player ) : byte

ai플레이일 경우 딜레이 값을 넣어줘서 너무 빨리 진행되지 않도록 한다.

is_received ( byte player_index, PROTOCOL protocol ) : bool
next_turn ( ) : void
reset ( ) : void
send_cardinfo_to_player ( CPlayer, player ) : void
send_flip_result ( PLAYER_SELECT_CARD_RESULT result, byte current_turn_player_index ) : void
send_go_or_stop ( ) : void
send_player_statistics ( byte player_index ) : void
send_select_card_ack ( PLAYER_SELECT_CARD_RESULT result, byte current_turn_player_index, byte slot_index ) : void

카드 선택에 대한 결과를 모든 플레이어에게 전송한다.

send_turn_result ( byte current_turn_player_index ) : void

메소드 상세

CGameRoom() 공개 메소드

public CGameRoom ( CLocalServer, server ) : System
server CLocalServer,
리턴 System

add_player() 공개 메소드

public add_player ( CPlayer, newbie ) : void
newbie CPlayer,
리턴 void

on_player_put_card() 공개 메소드

public on_player_put_card ( byte player_index, byte card_number, PAE_TYPE pae_type, byte position, byte slot_index, byte is_shaking ) : void
player_index byte
card_number byte
pae_type PAE_TYPE
position byte
slot_index byte
is_shaking byte
리턴 void

on_ready_req() 공개 메소드

public on_ready_req ( ) : void
리턴 void

on_receive() 공개 메소드

public on_receive ( CPlayer, owner, CPacket msg ) : void
owner CPlayer,
msg CPacket
리턴 void