Object Oriented Programming
- Another way to approach this is from a software engineering
perspective.
- You have to code an entity in a game.
- An obvious way to encapsulate your code is by agent.
- You want to have a base class that can be specialised.
- Now you can develop different types of agents, by subclassing
the base class.
- There may be some extra code for communication, but OOP
provides an easy way forward.
- Moreover, the alignment between class and agent says a lot about
it being a smart way to do it.
- Note that the user can also just be a special agent.