www.pudn.com > LINkSee.rar > Card.cs


using System; 
using System.Collections.Generic; 
using System.Text; 
using System.Drawing; 
using System.Drawing.Imaging; 
 
namespace LinkSee 
{ 
    class Card:BaseObject 
    { 
        public const int WIDTH = 28; 
        public const int HEIGHT = 28; 
 
        protected int type = 0; 
 
        public int Type 
        { 
            get { return this.type; } 
            set 
            { 
                this.type = value; 
                this.srcx = WIDTH * this.type; 
            } 
        } 
 
        public Card(Game game, Image image, ImageAttributes imageAttr, int left, int top) 
            : base(game, image, imageAttr) 
        { 
            move(left, top); 
            Resize(WIDTH, HEIGHT); 
            Reset(); 
        } 
 
        public override void Reset() 
        { 
            show(); 
        } 
    } 
}