Newer
Older
Import / projects / Gameloft / bne_lib / code / GameObjects / GridObject.h
@John John on 29 Dec 2020 735 bytes bulk import from macbookpro checkouts
#ifndef __GRID_OBJECT_H__
#define __GRID_OBJECT_H__

#include "CasualCore.h"

/*
Originally this class is used to represent collision blocks put on the grid to represent collisions. They are to be read by GameGrid class to set up collision.
As the whole level was designed as a single object, while it is possible to calculate the collision using the terrain height, it's not feasible since it's very costly.
*/
BEGIN_CASUALOBJECT(GridObject)
protected:
  bool PostInit() override;
  /* Override parent::Draw() to make sure that the GridObject is never drawn, even by accident */
  void Draw(const RKCamera* camera, RKFrustumFitter* frustumFitter) override {};
END_CASUALOBJECT(GridObject)

#endif //__GRID_OBJECT_H__