mirror of
https://github.com/RYGhub/royalnet.git
synced 2025-02-17 10:53:57 +00:00
Aggiunte funzioni al player
This commit is contained in:
parent
56f020af3a
commit
29ea17b9b8
1 changed files with 13 additions and 1 deletions
14
mifia.py
14
mifia.py
|
@ -1,12 +1,24 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
import telegram
|
||||||
|
|
||||||
|
|
||||||
class Player:
|
class Player:
|
||||||
telegramid = int()
|
telegramid = int()
|
||||||
username = str()
|
username = str()
|
||||||
role = int()
|
role = int()
|
||||||
|
alive = True
|
||||||
|
|
||||||
|
def message(self, text):
|
||||||
|
"""Manda un messaggio al giocatore
|
||||||
|
:param text: Testo del messaggio
|
||||||
|
"""
|
||||||
|
telegram.sendmessage(text, self.telegramid)
|
||||||
|
|
||||||
|
def kill(self):
|
||||||
|
"""Uccidi il giocatore"""
|
||||||
|
self.alive = False
|
||||||
|
|
||||||
|
|
||||||
class Game:
|
class Game:
|
||||||
chat = int()
|
chat = int()
|
||||||
players = list()
|
players = list()
|
||||||
|
|
Loading…
Add table
Reference in a new issue