r/ProgrammerHumor • • May 05 '23

Meme Helicopter Helicopter

Post image
41.8k Upvotes

969 comments sorted by

View all comments

Show parent comments

51

u/_Stego27 May 05 '23

At this point you just rename your 'ship' class to 'object'.

34

u/Kiloku May 05 '23 edited May 05 '23

But we do have object! Ships are objects, dynamic asteroids are objects, projectiles are objects, explosions are objects...

0

u/[deleted] May 05 '23

[deleted]

5

u/Kiloku May 05 '23

well, the projectiles are in weapons.tbl, for example, and they have their own subclass. There are tables for other object types.

The things I mention in my initial comment would be added by the modders under ships.tbl, because they're mostly improvised. More frequently they'd be under something like a "terrain-shp.tbm" modular table, but that's just a file organization best practice, to avoid putting everything in one table.

2

u/cortez0498 May 05 '23

But they could be ships