Class Inheritance
![Immagine](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-7T3hQAtgZj78kxuGSBQ36PAOKnbZn0B_V41pN3Gep7pG6dgwR0wiP0pNm0s8aTynv1wvLFY84KHH7HMdNumI8y_kvIxSikQOp2SAS-1TpVXuDM6e_xPebVTBhTD9_cH-3MhQAHvbvpQI/s400/72.jpg)
Space exploration can be very boring when you're alone, I think it's time to add some action by spawning enemies around the map. While thinking about the functionalities needed by the enemy ships, I noted that many of them are the same of the player ship. For instance, both need the arrays for directions, the same functions to move and rotate, etc. This is the typical case where class inheritance comes in handy. Class inheritance is one of the core concepts of many OOP (Object Oriented Programming) languages. It basically lets you create a base class where all the common behaviours and properties are stored; you can extend that class to other more specialized classes, where you can write methods and store variables that affect that particular subclass only. We already used this concept in the project, but Unreal Engine managed it for us behind the scenes: all our classes extend the Actor class, so all the basic methods like drawing the mesh, etc. are already writte...