Exemplo n.º 1
0
 public StockDrawer(Player player, int drawNum, Texture2D backTexture, Texture2D stockTexture)
 {
     this.player = player;
     this.backTexture = backTexture;
     this.stockTexture = stockTexture;
     drawPosition = new Vector2((drawNum * 1600/4), 0.0f);
 }
Exemplo n.º 2
0
 /// <param name="player">プレイヤー</param>
 public PlayerInfo(Player player)
     : base(player)
 {
     Name = player.Name;
     Direction = player.Direction;
     Action = player.Action;
     Stock = player.Stock;
     IsDead = player.IsDead;
     Index = player.Index;
     BlockPositionX = player.BlockPositionX;
     BlockPositionZ = player.BlockPositionZ;
     DeadTime = player.DeadTime;
 }
Exemplo n.º 3
0
        /// <param name="owner">生成したプレイヤー</param>
        public Attack(Player owner)
        {
            this.owner = owner;

            model = owner.AttackModel;
            Speed = owner.AttackSpeed;

            ModelInfo = new ModelInfo();
            ModelInfo.Position = owner.AttackPosition;

            Vector3 direction = owner.Direction;
            ModelInfo.Radian.Y = owner.RadianY;

            Vector3 blockPosition = ModelInfo.Position;
            blockPosition.Y--;
            this.BlockPosition = blockPosition;
        }
Exemplo n.º 4
0
        public NameDrawer(Player player, ContentManager content)
        {
            this.player = player;

            font = content.Load<SpriteFont>("Font/Indicator");
        }