示例#1
0
 //constructor(s)
 public RoomTab(Texture2D texture, Vector2 position, string roomName, RoomE roomCam, Texture2D roomTextures)
 {
     this.Position = position;
     this.RoomName = roomName;
     this.Texture = texture;
     this.RoomCam = roomCam;
     this.RoomTextures = roomTextures;
 }
示例#2
0
 //contructor(s)
 public Mechanic(Texture2D texture, Vector2 position, RoomE room, Resources resource, string name, int animWidth, int animHeight, int maxFrames, int spritesPerRow, Button button1, Button button2, Button button3, Button button4, Texture2D walkLeft, int walkLeftFrames, int walkLeftSPR, Texture2D walkRight, int walkRightFrames, int walkRightSPR,
     Texture2D walkUp, int walkUpFrames, int walkUpSPR, Texture2D walkDown, int walkDownFrames, int walkDownSPR, int intel, int perc, int stam, int con, int hand, int hunger, string wName, Texture2D portrait, Texture2D deathAnim, Texture2D deadTexture)
     : base(texture, position, room, name, animWidth, animHeight, maxFrames, spritesPerRow, button1, button2, button3, button4, walkLeft, walkLeftFrames, walkLeftSPR, walkRight, walkRightFrames, walkRightSPR, walkUp, walkUpFrames, walkUpSPR, walkDown, walkDownFrames, walkDownSPR, intel, perc, stam, con, hand, hunger)
 {
     this.WrenchName = wName;
     this.Resource = resource;
     this.healthPoints = (con * 2) * 10;
     this.OldPos = position;
     this.OldTexture = texture;
     this.OldSPR = spritesPerRow;
     this.OldFrames = maxFrames;
     this.Portrait = portrait;
     this.DeathAnim = deathAnim;
     this.DeadTexture = deadTexture;
 }
示例#3
0
        //constructor(s)
        protected Character(Texture2D texture, Vector2 position, RoomE room, string name, int animWidth, int animHeight, int maxFrames, int spritesPerRow,
            Button button1, Button button2, Button button3, Button button4, Texture2D walkLeft, int walkLeftFrames, int walkLeftSPR, Texture2D walkRight, int walkRightFrames, int walkRightSPR,
            Texture2D walkUp, int walkUpFrames, int walkUpSPR, Texture2D walkDown, int walkDownFrames, int walkDownSPR, int intel, int perc, int stam, int con, int hand, float hunger)
        {
            this.Texture = texture;
            this.Position = position;
            this.RoomV = room;
            this.CharName = name;
            this.AnimHeight = animHeight;
            this.AnimWidth = animWidth;
            this.MaxFrames = maxFrames;
            this.SpritesPerRow = spritesPerRow;
            this.CharButton1 = button1;
            this.CharButton2 = button2;
            this.CharButton3 = button3;
            this.CharButton4 = button4;
            this.WalkLeft = walkLeft;
            this.WalkLeftFrames = walkLeftFrames;
            this.WalkLeftSpritesPerRow = walkLeftSPR;
            this.WalkRight = walkRight;
            this.WalkRightFrames = walkRightFrames;
            this.WalkRightSpritesPerRow = walkRightSPR;
            this.WalkUpFrames = walkUpFrames;
            this.WalkUp = walkUp;
            this.WalkUpSpritesPerRow = walkUpSPR;
            this.WalkDown = walkDown;
            this.WalkDownFrames = walkDownFrames;
            this.WalkDownSpritesPerRow = walkDownSPR;

            this.Intellect = intel;
            this.Perception = perc;
            this.Stamina = stam;
            this.Constitution = con;
            this.Handyness = hand;
            this.Hunger = hunger;
        }