public bool TryGather(IResource resource) { if (resource.Type == ResourceType.Stone) { if (!this.hasGatheredResources) { this.AttackPoints += 100; this.hasGatheredResources = true; } return true; } return false; } }