コード例 #1
0
/**
 *  An x,y zeichnen.
 *
 *  @author OLiver
 */
void noDisappearingMapEnvObject::Draw(int x, int y)
{
    // Bild
    LOADER.GetMapImageN(map_id)->Draw(x, y, 0, 0, 0, 0, 0, 0, GetDrawColor());
    // Schatten
    LOADER.GetMapImageN(map_id + 100)->Draw(x, y, 0, 0, 0, 0, 0, 0, GetDrawShadowColor());
}
コード例 #2
0
/**
 *  An x,y zeichnen.
 */
void noDisappearingMapEnvObject::Draw(DrawPoint drawPt)
{
    // Bild
    LOADER.GetMapImageN(map_id)->DrawFull(drawPt, GetDrawColor());
    // Schatten
    LOADER.GetMapImageN(map_id + 100)->DrawFull(drawPt, GetDrawShadowColor());
}
コード例 #3
0
ファイル: noSign.cpp プロジェクト: Ribosom/s25client
/**
 *  An x,y zeichnen.
 *
 *  @author OLiver
 */
void noSign::Draw(int x, int y)
{
    // Wenns verschwindet, muss es immer transparenter werden
    unsigned color = GetDrawColor();

    // Schild selbst
    if(type != 5)
        LOADER.GetMapImageN(680 + type * 3 + quantity)->Draw(x, y, 0, 0, 0, 0, 0, 0, color);
    else
        // leeres Schild
        LOADER.GetMapImageN(695)->Draw(x, y, 0, 0, 0, 0, 0, 0, color);

    // Schatten des Schildes
    LOADER.GetMapImageN(700)->Draw(x, y, 0, 0, 0, 0, 0, 0, GetDrawShadowColor());
}