1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Aggiunte funzioni al player

This commit is contained in:
Steffo 2016-04-01 18:20:10 +02:00
parent 56f020af3a
commit 29ea17b9b8

View file

@ -1,12 +1,24 @@
# -*- coding: utf-8 -*-
import telegram
class Player:
telegramid = int()
username = str()
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:
chat = int()
players = list()
players = list()