Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch (objectType)
- {
- case 1: // Box
- {
- // Creates the box.
- CEntityTileBox* boxEntity = new CEntityTileBox(object->GetX(), object->GetY());
- AddEntity(boxEntity, DYNAMIC_COLLISION, 1);
- break;
- }
- case 2: // Canon
- {
- CEntityCanon* canonEntity = new CEntityCanon(object->GetX(), object->GetY());
- AddEntity(canonEntity, DYNAMIC_COLLISION);
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment