예제 #1
0
파일: ai.cpp 프로젝트: bellinat0r/Epiar
/**\brief Draw the AI Ship, and possibly debugging information.
 *
 * When the "options/development/debug-ai" flag is set, this will display the
 * current stateMachine and state below the Ship Spite.
 *
 * \see OPTION
 */
void AI::Draw(){
	this->Ship::Draw();
	if( OPTION(int,"options/development/debug-ai") ) {
		Coordinate position = this->GetWorldPosition();
		SansSerif->SetColor( WHITE );
		SansSerif->Render(position.GetScreenX(),position.GetScreenY()+GetImage()->GetHalfHeight(),stateMachine);
		SansSerif->Render(position.GetScreenX(),position.GetScreenY()+GetImage()->GetHalfHeight()+20,state);
	}
}
예제 #2
0
파일: effects.cpp 프로젝트: Maka7879/Epiar
/**\brief Draws the Effect
 */
void Effect::Draw( void ) {
	Coordinate pos = GetWorldPosition();
	visual->Draw( pos.GetScreenX(), pos.GetScreenY(), this->GetAngle());
}