1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +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,10 +1,22 @@
# -*- 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: