17 lines
526 B
C#
17 lines
526 B
C#
namespace TanksServer.Models;
|
|
|
|
internal sealed class Bullet(Player tankOwner, FloatPosition position, double rotation, bool isExplosive, DateTime timeout) : IMapEntity
|
|
{
|
|
public Player Owner { get; } = tankOwner;
|
|
|
|
public double Rotation { get; } = rotation;
|
|
|
|
public FloatPosition Position { get; set; } = position;
|
|
|
|
public bool IsExplosive { get; } = isExplosive;
|
|
|
|
public DateTime Timeout { get; } = timeout;
|
|
|
|
public PixelBounds Bounds => new (Position.ToPixelPosition(), Position.ToPixelPosition());
|
|
}
|