示例#1
0
        public frmGame()
        {
            InitializeComponent();
            game = new Game(this);
            RefreshFrame(game.Render());

            pgbExp.Style = ProgressBarStyle.Continuous;
            pgbExp.ForeColor = Color.FromArgb(6030325);
            
        }
示例#2
0
        public Player(string name, int str, int dex, int agi, int cons, int charisma, Game game)
        {
            Name = name;

            this.str = str;
            this.dex = dex;
            this.agi = agi;
            this.cons = cons;
            this.charisma = charisma;

            currentHP = cons * 10;

            Level = 1;
            CurrentExp = 0;

            Gold = 0;

            this.game = game;
        }
示例#3
0
 public Player(string name, int ID, Game game)
 {
     Name = name;
     this.game = game;
 }