C# Класс CGameRoom, freegostop

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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