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); }
/// <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; }
/// <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; }
public NameDrawer(Player player, ContentManager content) { this.player = player; font = content.Load<SpriteFont>("Font/Indicator"); }