Bug in ObjC
The simplest version of an Objective-C program
A main( ) function
One class, one instance: Bug
main( ) imports base library of Swarm and fires up initSwarm( ) which gives us libraries for memory allocation etc.
xPos,yPos
worldXSize,
worldYSize
-setX: Y:
-setWorldSizeX: Y:
-step
Instance
vars
Methods
main
Previous slide
Next slide
Back to first slide
View graphic version