AngryTanks.Client.Player.Player C# (CSharp) Method

Player() public method

public Player ( AngryTanks.Client.World world, PlayerInformation playerInfo ) : System
world AngryTanks.Client.World
playerInfo PlayerInformation
return System
        public Player(World world, PlayerInformation playerInfo)
            : base(world, GetTexture(world, playerInfo), Vector2.Zero, GetTankSize(world, playerInfo), 0)
        {
            this.playerInfo = playerInfo;
            this.Score = new Score(); //Gives scoreHUD a valid reference to start with

            explosion = new AnimatedSprite(World,
                                           World.Content.Load<Texture2D>("textures/bz/explode1"),
                                           Position,
                                           GetTankSize(World, PlayerInfo) * 4,
                                           Rotation,
                                           new Point(8, 8), new Point(64, 64), SpriteSheetDirection.RightToLeft, false);

            explosion.Running = false;

            World.ServerLink.MessageReceivedEvent += HandleReceivedMessage;
        }