X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2FEntities%2FPolygon.cpp;h=18615714f3254a885d75a79ebda5fc64ecb70fbf;hb=e4d7555ada4b164f6ee12019356bdb0a12c5fbf9;hp=bd2a38ddd4bca94b59abb377289f3b3c7053cb2d;hpb=27b748208e91c2e802cbc2b8f7ab3620adaf6cb6;p=physics.git diff --git a/src/Entities/Polygon.cpp b/src/Entities/Polygon.cpp index bd2a38d..1861571 100644 --- a/src/Entities/Polygon.cpp +++ b/src/Entities/Polygon.cpp @@ -1,24 +1,46 @@ +/* + * Copyright (C) 2008 Patrik Gornicz, Gornicz_P (at) hotmail (dot) com. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include "Polygon.h" + #include "../Vector2.h" -/// ***** Public Class Methods ***** -Polygon::Polygon(Vector2 pos, vector points) + +/// ***** Constructors/Destructors ***** + +Polygon::Polygon(const Vector2& pos, vector points) : PhysicsEntity(pos), points(points) { - CreateBindingBox(); + createBindingBox(); } Polygon::~Polygon() { } +/// ***** Public Class Methods ***** + void Polygon::draw() const { // TODO } /// ***** Private Class Methods ***** -void Polygon::CreateBindingBox() +void Polygon::createBindingBox() { // TODO }