Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
server_counter.h
Go to the documentation of this file.
1/***************************************************************************
2 * Copyright (C) 2008 by Max-Wilhelm Bruker *
3 * brukie@laptop *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
20#ifndef SERVER_COUNTER_H
21#define SERVER_COUNTER_H
22
23#include <QString>
24#include <libcockatrice/protocol/pb/color.pb.h>
25
26class ServerInfo_Counter;
27
29{
30protected:
31 int id;
32 QString name;
34 int radius;
35 int count;
36
37public:
38 Server_Counter(int _id, const QString &_name, const color &_counterColor, int _radius, int _count = 0);
40 {
41 }
42 int getId() const
43 {
44 return id;
45 }
46 QString getName() const
47 {
48 return name;
49 }
50 const color &getColor() const
51 {
52 return counterColor;
53 }
54 int getRadius() const
55 {
56 return radius;
57 }
58 int getCount() const
59 {
60 return count;
61 }
62 void setCount(int _count)
63 {
64 count = _count;
65 }
66
67 void getInfo(ServerInfo_Counter *info);
68};
69
70#endif
~Server_Counter()
Definition server_counter.h:39
int id
Definition server_counter.h:31
int radius
Definition server_counter.h:34
int getRadius() const
Definition server_counter.h:54
color counterColor
Definition server_counter.h:33
QString getName() const
Definition server_counter.h:46
Server_Counter(int _id, const QString &_name, const color &_counterColor, int _radius, int _count=0)
Definition server_counter.cpp:5
void setCount(int _count)
Definition server_counter.h:62
void getInfo(ServerInfo_Counter *info)
Definition server_counter.cpp:10
int getCount() const
Definition server_counter.h:58
const color & getColor() const
Definition server_counter.h:50
int count
Definition server_counter.h:35
int getId() const
Definition server_counter.h:42
QString name
Definition server_counter.h:32