Strictly speaking Buddha was not a royal price but scion of an aristocratic family. As a comparison think of someone born in a patrician family of Rome when his father is a Consul of Rome. The Wikipedia article has good details about the Shakyas: https://en.wikipedia.org/wiki/Shakya