Exemplo n.º 1
0
 public Player(EntityCategory playerType, string name = "Player")
 {
     Name = name;
     PlayerType = playerType;
     Resources = new PlayerData();
     Guns = new List<Gun>();
 }
Exemplo n.º 2
0
 private PlayerData(PlayerData playerData)
 {
     mDefault = playerData;
 }
Exemplo n.º 3
0
 public void SetBuildingObjectType(PlayerData.ObjectType objectType)
 {
     mBuildingObjectType = objectType;
     switch (objectType)
     {
         case PlayerData.ObjectType.Block1:
             {
                 mTexture = "block3";
                 mHealth = 100;
                 break;
             }
         case PlayerData.ObjectType.Block2:
             {
                 mTexture = "block2";
                 mHealth = 200;
                 break;
             }
         case PlayerData.ObjectType.Block3:
             {
                 mTexture = "block";
                 mHealth = 300;
                 break;
             }
         case PlayerData.ObjectType.Gun:
             {
                 mTexture = "gun";
                 break;
             }
         default:
             break;
     }
     CreateGameObject();
 }
Exemplo n.º 4
0
 static PlayerData()
 {
     mDefault = new PlayerData(null);
     Default.CurrentResources = 1000;
 }