Set classes as something like Shape?
Is there a way to make things like Circle (Ellipse), Rectangle, and Triange into shapes?

I know that's already done, but is there a way to do this for something else?

I want to make friendly team members and enemies, but I want to use the Artificial Intelligence on both of them and not have to write it twice.

Thanks!

Example:

    Class Soldier
    
    Class Enemy
    
    Class AI (Player something){
         // Make Decision
    }

Then to use it...

    AI(Soldier);
    AI(Enemy);
Set classes as something like Shape?
===

Is there a way to make things like Circle (Ellipse), Rectangle, and Triange into shapes?

I know that's already done, but is there a way to do this for something else?

I want to make friendly team members and enemies, but I want to use the Artificial Intelligence on both of them and not have to write it twice.

Thanks!

Example:

    Class Soldier
    
    Class Enemy
    
    Class AI (Player something){
         // Make Decision
    }

Then to use it...

    AI(Soldier);
    AI(Enemy);