1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00
royalnet/mifia.py

25 lines
446 B
Python
Raw Normal View History

2016-04-01 15:39:38 +00:00
# -*- coding: utf-8 -*-
2016-04-01 16:20:10 +00:00
import telegram
2016-04-01 15:39:38 +00:00
class Player:
2016-04-01 15:47:20 +00:00
telegramid = int()
username = str()
role = int()
2016-04-01 16:20:10 +00:00
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
2016-04-01 15:39:38 +00:00
2016-04-01 15:47:20 +00:00
class Game:
chat = int()
2016-04-01 16:20:10 +00:00
players = list()