Beispiel #1
0
 public Player(Texture2D icon, SpriteFont font, Vector2 mapPos, Vector2 screenSize,
     Vector2 mapSize, Cursor cursor, ArrayList powers)
 {
     mySelectedPower = (Power)powers[0];
     myIcon = icon;
     myFont = font;
     myPowers = powers;
     myMapPosition = mapPos;
     myMapSize = mapSize;
     myCursor = cursor;
     myScreenSize = screenSize;
     myVelocity = new Vector2(0, 0);
     SetupInput();
 }
Beispiel #2
0
 public virtual void PowerCombo(Power power2, MouseState mState)
 {
 }
Beispiel #3
0
 public override void PowerCombo(Power power2, MouseState mState)
 {
     //not currently implemented
 }
Beispiel #4
0
 /// <summary>
 /// Set the hotkey to the power.
 /// </summary>
 /// <param name="num"></param>
 public void powerHotkey(int num)
 {
     if (myPowers.Count > num)
         mySelectedPower = (Power)myPowers[num];
     else
         Debug.WriteLine("That power does not exist.");
 }