How to avoid name collisions in C ++ class names

“These are all humans, but that one, is Dave. Dave is not like the others” :rofl:

#pragma once

#include "HumanCharacter.h"

#include "DaveCharacter.generated.h"


UCLASS(BlueprintType)
class GAMECORE_API ADaveCharacter : public AHumanCharacter {
    GENERATED_BODY()

private:

	UPROPERTY()
		bool bIsSpecial = true;

public:
	
	ADaveCharacter() {
		Title = "VeryMuchDave";
	}

};


1 Like