TargetVisibilityPatch Class Reference

#include <TargetVisibilityPatch.h>

List of all members.

Public Member Functions

 TargetVisibilityPatch ()
 ~TargetVisibilityPatch ()
void setLocation (int x, int y)
bool setVisible (float distance)
void setNotVisible ()
bool hasTrees ()
bool hasTargets ()
float getDistance ()
VectorgetPosition ()
bool getVisible ()
std::set< void * > & getTargets ()
void addTarget (Target *target)
void removeTarget (Target *target)
std::set< void * > & getTrees ()
void addTree (Target *target)
void removeTree (Target *target)
std::set< void * > & getTooltips ()
void addTooltip (Target *target)
void removeTooltip (Target *target)

Static Public Member Functions

static std::set
< void * > & 
getLargeTargets ()
static void addLargeTarget (Target *target)
static void removeLargeTarget (Target *target)

Protected Attributes

int x_
int y_
bool visible_
float distance_
Vector position_
std::set< void * > trees_
std::set< void * > targets_
std::set< void * > tooltips_

Static Protected Attributes

static std::set< void * > largeTargets_


Detailed Description

Definition at line 28 of file TargetVisibilityPatch.h.


Constructor & Destructor Documentation

TargetVisibilityPatch::TargetVisibilityPatch (  ) 

Definition at line 28 of file TargetVisibilityPatch.cpp.

TargetVisibilityPatch::~TargetVisibilityPatch (  ) 

Definition at line 33 of file TargetVisibilityPatch.cpp.


Member Function Documentation

void TargetVisibilityPatch::setLocation ( int  x,
int  y 
)

Definition at line 37 of file TargetVisibilityPatch.cpp.

References position_, x_, and y_.

Referenced by VisibilityPatchGrid::generate().

bool TargetVisibilityPatch::setVisible ( float  distance  ) 

Definition at line 47 of file TargetVisibilityPatch.cpp.

References distance_, and visible_.

Referenced by VisibilityPatchQuad::setVisible().

void TargetVisibilityPatch::setNotVisible (  ) 

Definition at line 61 of file TargetVisibilityPatch.cpp.

References visible_.

Referenced by VisibilityPatchQuad::setNotVisible().

bool TargetVisibilityPatch::hasTrees (  )  [inline]

Definition at line 38 of file TargetVisibilityPatch.h.

References trees_.

Referenced by VisibilityPatchQuad::setVisible().

bool TargetVisibilityPatch::hasTargets (  )  [inline]

Definition at line 39 of file TargetVisibilityPatch.h.

References targets_.

Referenced by VisibilityPatchQuad::setVisible().

float TargetVisibilityPatch::getDistance (  )  [inline]

Definition at line 41 of file TargetVisibilityPatch.h.

References distance_.

Referenced by RenderTargets::draw(), RenderTargets::draw2d(), and RenderTargets::shadowDraw().

Vector& TargetVisibilityPatch::getPosition (  )  [inline]

Definition at line 42 of file TargetVisibilityPatch.h.

References position_.

Referenced by VisibilityPatchQuad::setVisible().

bool TargetVisibilityPatch::getVisible (  )  [inline]

Definition at line 43 of file TargetVisibilityPatch.h.

References visible_.

Referenced by TargetRendererImpl::getVisible().

static std::set<void *>& TargetVisibilityPatch::getLargeTargets (  )  [inline, static]

Definition at line 45 of file TargetVisibilityPatch.h.

References largeTargets_.

Referenced by RenderTargets::draw(), RenderTargets::shadowDraw(), and RenderTargets::Renderer3D::simulate().

static void TargetVisibilityPatch::addLargeTarget ( Target target  )  [inline, static]

Definition at line 46 of file TargetVisibilityPatch.h.

References largeTargets_.

Referenced by TargetRendererImpl::setMovedPatch().

static void TargetVisibilityPatch::removeLargeTarget ( Target target  )  [inline, static]

Definition at line 47 of file TargetVisibilityPatch.h.

References largeTargets_.

Referenced by TargetRendererImpl::setMovedPatch().

std::set<void *>& TargetVisibilityPatch::getTargets (  )  [inline]

Definition at line 49 of file TargetVisibilityPatch.h.

References targets_.

Referenced by RenderTargets::draw(), RenderTargets::shadowDraw(), and RenderTargets::Renderer3D::simulate().

void TargetVisibilityPatch::addTarget ( Target target  )  [inline]

Definition at line 50 of file TargetVisibilityPatch.h.

References targets_.

Referenced by TargetRendererImpl::setMovedPatch().

void TargetVisibilityPatch::removeTarget ( Target target  )  [inline]

Definition at line 51 of file TargetVisibilityPatch.h.

References targets_.

Referenced by TargetRendererImpl::setMovedPatch().

std::set<void *>& TargetVisibilityPatch::getTrees (  )  [inline]

Definition at line 53 of file TargetVisibilityPatch.h.

References trees_.

Referenced by RenderTargets::draw(), and RenderTargets::shadowDraw().

void TargetVisibilityPatch::addTree ( Target target  )  [inline]

Definition at line 54 of file TargetVisibilityPatch.h.

References trees_.

Referenced by TargetRendererImpl::setMovedPatch().

void TargetVisibilityPatch::removeTree ( Target target  )  [inline]

Definition at line 55 of file TargetVisibilityPatch.h.

References trees_.

Referenced by TargetRendererImpl::setMovedPatch().

std::set<void *>& TargetVisibilityPatch::getTooltips (  )  [inline]

Definition at line 57 of file TargetVisibilityPatch.h.

References tooltips_.

Referenced by RenderTargets::draw2d().

void TargetVisibilityPatch::addTooltip ( Target target  )  [inline]

Definition at line 58 of file TargetVisibilityPatch.h.

References tooltips_.

Referenced by TargetRendererImpl::setMovedPatch().

void TargetVisibilityPatch::removeTooltip ( Target target  )  [inline]

Definition at line 59 of file TargetVisibilityPatch.h.

References tooltips_.

Referenced by TargetRendererImpl::setMovedPatch().


Member Data Documentation

int TargetVisibilityPatch::x_ [protected]

Definition at line 62 of file TargetVisibilityPatch.h.

Referenced by setLocation().

int TargetVisibilityPatch::y_ [protected]

Definition at line 62 of file TargetVisibilityPatch.h.

Referenced by setLocation().

bool TargetVisibilityPatch::visible_ [protected]

Definition at line 63 of file TargetVisibilityPatch.h.

Referenced by getVisible(), setNotVisible(), and setVisible().

float TargetVisibilityPatch::distance_ [protected]

Definition at line 64 of file TargetVisibilityPatch.h.

Referenced by getDistance(), and setVisible().

Vector TargetVisibilityPatch::position_ [protected]

Definition at line 65 of file TargetVisibilityPatch.h.

Referenced by getPosition(), and setLocation().

std::set<void *> TargetVisibilityPatch::trees_ [protected]

Definition at line 66 of file TargetVisibilityPatch.h.

Referenced by addTree(), getTrees(), hasTrees(), and removeTree().

std::set<void *> TargetVisibilityPatch::targets_ [protected]

Definition at line 66 of file TargetVisibilityPatch.h.

Referenced by addTarget(), getTargets(), hasTargets(), and removeTarget().

std::set<void *> TargetVisibilityPatch::tooltips_ [protected]

Definition at line 66 of file TargetVisibilityPatch.h.

Referenced by addTooltip(), getTooltips(), and removeTooltip().

std::set< void * > TargetVisibilityPatch::largeTargets_ [static, protected]

Definition at line 67 of file TargetVisibilityPatch.h.

Referenced by addLargeTarget(), getLargeTargets(), and removeLargeTarget().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:08 2009 for Scorched3D by  doxygen 1.5.3