#pragma once #include "Model.h" #include "ModelPart.h" class BoatModel : public Model { public: ModelPart *bottom; ModelPart *back; ModelPart *front; ModelPart *right; ModelPart *left; ModelPart *paddleLeft; ModelPart *paddleRight; ModelPart *waterPatch; BoatModel(); virtual void render(shared_ptr entity, float time, float r, float bob, float yRot, float xRot, float scale, bool usecompiled); void renderWaterPatch(float scale, bool usecompiled); private: ModelPart *makePaddle(bool isLeft); void animatePaddle(ModelPart *paddle, float rowingTime, int side, float scale, bool usecompiled); };