Esempio n. 1
0
 public MapToken(MapControl mapCtrl, ref TokenData tokenData, PointF mapPosition)
 {
     this.mapCtrl   = mapCtrl;
     this.tokenData = new TokenData(ref tokenData);
     this.position  = mapPosition;
     this.control   = new TokenListItemControl(this);
 }
Esempio n. 2
0
        // Copy constructor
        public MapToken(MapToken other)
        {
            TokenData otherTokenData = other.GetTokenData();

            this.mapCtrl   = other.mapCtrl;
            this.tokenData = new TokenData(ref otherTokenData);
            this.position  = other.Position;
            this.control   = new TokenListItemControl(this);
        }
Esempio n. 3
0
        private void addCtrlBtn_Click(object sender, EventArgs e)
        {
            TokenData tokData = new TokenData("Cornealeous Pumpernickle III", TokenType.Player);

            tokData.MaxHP     = 100;
            tokData.CurrentHP = 9;
            MapToken             mapTok   = new MapToken(mapCtrl, ref tokData, new PointF(0, 0));
            TokenListItemControl listCtrl = new TokenListItemControl(mapTok);

            testFlowContainer.Controls.Add(listCtrl);
        }