-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayer.m
27 lines (23 loc) · 797 Bytes
/
player.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
classdef player < handle
% properties of poker game engine
properties (Access = public)
avatar = 'icon_default.png';
role = -1; % -1-defult, 0-landlord, 1-peasant;
cards = {}; % store the distributed info from *.json
cardNum = 0;
selectNum = 0; % remember to reset
isActive = false;
myTurn = false;
currUI; % its own UI
% row 1 stores the components of cards;
% row 2 stores whether the card has selected;
% row 3 stores whether the cards has shot;
% row 4 stores the str# of cards;
% row 5 stores the lable
% row 6 stores the # of cards
cards_img = {};
end
% methods that game engine has:
methods
end
end