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()
|