Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

RopeDecor Class Reference

Inheritance diagram for RopeDecor:

Inheritance graph
Collaboration diagram for RopeDecor:

Collaboration graph

Detailed Description

Draw rope between two models.

Definition at line 15 of file RopeDecor.h.

Public Member Functions

 RopeDecor (const Cube *model1, const Cube *model2, const V2 &shift1, const V2 &shift2)
virtual void drawOnScreen (const View *view, SDL_Surface *screen)
 Draw line from one model to second model.

Constructor & Destructor Documentation

RopeDecor::RopeDecor const Cube model1,
const Cube model2,
const V2 shift1,
const V2 shift2

Definition at line 18 of file RopeDecor.cpp.

00020 : m_shift1(shift1), m_shift2(shift2)
00021 {
00022     m_model1 = model1;
00023     m_model2 = model2;
00024 }

Member Function Documentation

void RopeDecor::drawOnScreen const View view,
SDL_Surface *  screen

Draw line from one model to second model.

Implements Decor.

Definition at line 30 of file RopeDecor.cpp.

00031 {
00032     V2 loc1 = view->getScreenPos(m_model1).plus(m_shift1);
00033     V2 loc2 = view->getScreenPos(m_model2).plus(m_shift2);
00035     //NOTE: steel color
00036     Uint32 colorRGBA = 0x30404eff;
00037     lineColor(screen, loc1.getX(), loc1.getY(),
00038             loc2.getX(), loc2.getY(), colorRGBA);
00039 }

The documentation for this class was generated from the following files:
Generated on Wed Jun 1 09:56:35 2005 for Fish Fillets - Next Generation by  doxygen 1.4.2