コード例 #1
0
ファイル: Sword.cs プロジェクト: Ghust1995/CIG2013-ITABITS
 public Sword(Texture2D textureImage, Vector2 position, Point frameSize,
     Point currentFrame, Point sheetSize, float angle, int tipDamage, int midDamage, float depth, SpriteManager spriteManager)
     : base(textureImage, position, frameSize, currentFrame, sheetSize, angle, depth)
 {
     this.spriteManager = spriteManager;
     this.midDamage = midDamage;
     this.tipDamage = tipDamage;
 }
コード例 #2
0
ファイル: Player.cs プロジェクト: Ghust1995/CIG2013-ITABITS
 public Player(Texture2D textureImage, Vector2 position, Point frameSize,
     Point currentFrame, Point sheetSize, float angle, int totalhp, int hp,
     int xp, int xpToNextLevel, float depth, SpriteManager spriteManager, MapManager mapManager)
     : base(textureImage, position, frameSize, currentFrame, sheetSize, angle, depth)
 {
     this.totalhp = totalhp;
     this.hp = hp;
     this.xp = xp;
     this.xpToNextLevel = xpToNextLevel;
     this.spriteManager = spriteManager;
     this.mapManager = mapManager;
 }
コード例 #3
0
ファイル: Enemy.cs プロジェクト: Amarrado/CIG2013
 public Enemy(Texture2D textureImage, Vector2 position, Point frameSize,
     Point currentFrame, Point sheetSize, float angle, float depth, SpriteManager spriteManager, int weight,
     Vector2 speed, int totalhp, int hp, int attackSpeed, int attackRange, int damage, int xp)
     : base(textureImage, position, frameSize, currentFrame, sheetSize, speed, angle, depth)
 {
     this.spriteManager = spriteManager;
     this.totalhp = totalhp;
     this.hp = hp;
     this.attackSpeed = attackSpeed;
     this.attackRange = attackRange;
     this.damage = damage;
     this.xp = xp;
     this.weight = weight;
 }
コード例 #4
0
ファイル: Game1.cs プロジェクト: Ghust1995/CIG2013-ITABITS
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            // TODO: Add your initialization logic here

            spriteManager = new SpriteManager(this);
            menuManager = new MenuManager(this);
            mapManager = new MapManager(this);

            Components.Add(mapManager);
            Components.Add(spriteManager);
            Components.Add(menuManager);
            rectangle.Right.Equals(rectangle.Left);

            base.Initialize();
        }