示例#1
0
 public PrzyjaznyNPC(int _id, string _nazwa, Image SciezkaObrazu, Image DialogImagePath, string _EndingLine) : base()
 {
     id              = _id;
     Nazwa           = _nazwa;
     ObrazekPostaci  = new Bitmap(SciezkaObrazu);
     DialogImage     = new Bitmap(DialogImagePath);
     EndingLine      = _EndingLine;
     CharacterSprite = new WorldMapSprite();
     Questy          = new List <Quest>();
 }
示例#2
0
 public Przeciwnik(string nazwa, int _id, int obrazenia, int nagrodaexp, int nagrodagold, int basehp, int basemp, Image SciezkaObrazu, Image BattleImagePath) : base(basehp, basemp)
 {
     id = _id;
     SetMaxHP(basehp);
     SetHP(basehp);
     SetMaxMP(basemp);
     SetMP(basemp);
     Nazwa           = nazwa;
     Obrazenia       = obrazenia;
     NagrodaExp      = nagrodaexp;
     NagrodaGold     = nagrodagold;
     ObrazekPostaci  = new Bitmap(SciezkaObrazu);
     BattleImage     = new Bitmap(BattleImagePath);
     CharacterSprite = new WorldMapSprite();
 }
示例#3
0
        // ekwipunek przeniesiony do klasy postaci
        //public List<Przedmiot> Ekwipunek;


        public Bohater(int level, int basehp, int basemp, int gold, int exp, int STR, int DEX, int INT, Point Location, Image SciezkaObrazku, Image BattleImagePath, Image DialogImagePath) : base(basehp, basemp)  // konstruktor
        {
            Level = level;
            SetGold(gold);
            EXP             = exp;
            Strength        = STR;
            Dexterity       = DEX;
            Intelligence    = INT;
            PlayerLoc       = Location;
            ObrazekPostaci  = new Bitmap(SciezkaObrazku);
            BattleImage     = new Bitmap(BattleImagePath);
            DialogImage     = new Bitmap(DialogImagePath);
            CharacterSprite = new WorldMapSprite(PlayerLoc, ObrazekPostaci);
            quests          = new List <Quest>();
            UpdateStats();
            SetHP(GetMaxHP());
            SetMP(GetMaxMP());
            Skillpoints = 0;
        }