I think, methods aside, its easer to liken it to the data editor. Lets take units as an example. You have unit types and units themselves; unit types define the characteristics of what an ingame unit should be like, while each ingame unit is an already existing entity, defined by the unit type. For c, the unit type would be called a class, and the ingame units be instances.
You have a unit type called "Marine", which has properties like HP, Energy, armor, etc. These would be called attributes in c. An unit can have actions (like say, attack, die, move, etc), which would be called methods.
I have to go so i cant finish this post, but try ti figure out the rest ahah
Nope, primitives there too.
Go play Antioch Chronicles Remastered!
Also, coming soon, Antioch Episode 3: Thoughts in Chaos!
Dont like mapster's ugly white? Try Mapster's Classic Skin!
int and float are primitives, not classes tho (well, they are in c, java is more... complicated; and l;ets not get into javascript)
Go play Antioch Chronicles Remastered!
Also, coming soon, Antioch Episode 3: Thoughts in Chaos!
Dont like mapster's ugly white? Try Mapster's Classic Skin!
I think, methods aside, its easer to liken it to the data editor. Lets take units as an example. You have unit types and units themselves; unit types define the characteristics of what an ingame unit should be like, while each ingame unit is an already existing entity, defined by the unit type. For c, the unit type would be called a class, and the ingame units be instances.
You have a unit type called "Marine", which has properties like HP, Energy, armor, etc. These would be called attributes in c. An unit can have actions (like say, attack, die, move, etc), which would be called methods.
I have to go so i cant finish this post, but try ti figure out the rest ahah
Go play Antioch Chronicles Remastered!
Also, coming soon, Antioch Episode 3: Thoughts in Chaos!
Dont like mapster's ugly white? Try Mapster's Classic Skin!