protected DrawableTouhouSharpPlayer(P p, TouhouSharpPlayfield playfield) : base(p, playfield) { Add(THSharpInputHandler = new THSharpInputHandler()); THSharpInputHandler.Pressed = Pressed; THSharpInputHandler.Released = Released; Actions[THSharpAction.Up] = false; Actions[THSharpAction.Down] = false; Actions[THSharpAction.Left] = false; Actions[THSharpAction.Right] = false; Actions[THSharpAction.Slow] = false; Actions[THSharpAction.Shoot] = false; playfield.GameField.Add(Cursor = new SymcolContainer { Anchor = Anchor.TopLeft, Origin = Anchor.Centre, Size = new Vector2(4), CornerRadius = 2, Alpha = 0.2f, Masking = true, Child = new Box { RelativeSizeAxes = Axes.Both } }); }
public DrawableTHSharpPlayer(Playfield.GamePlayfield playfield, THSharpPlayer player) : base(playfield) { Player = player; //THSharpNetworkingClientHandler = vitaruNetworkingClientHandler; Add(THSharpInputHandler = new THSharpInputHandler( )); THSharpInputHandler.Pressed = Pressed; THSharpInputHandler.Released = Released; Actions[THSharpAction.Up] = false; Actions[THSharpAction.Down] = false; Actions[THSharpAction.Left] = false; Actions[THSharpAction.Right] = false; Actions[THSharpAction.Slow] = false; Actions[THSharpAction.Shoot] = false; THSharpPlayfield.GameField.Add(Cursor = new Container { Anchor = Anchor.TopLeft, Origin = Anchor.Centre, Size = new Vector2(4), CornerRadius = 2, Alpha = 0.2f, Masking = true, Child = new Box { RelativeSizeAxes = Axes.Both } }); }