Skip to content

Instantly share code, notes, and snippets.

Mark Dickie deephack1982

  • Stockholm, Sweden
Block or report user

Report or block deephack1982

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View q4.cpp
class CGuiWidget
void Render();
virtual void RenderInternal();
CRect<uint64> ConvertToBounds( CRect<uint64> Frame )
{ ... }
View q3.cpp
// pdx_fontatlas.h
struct SFontGlyph
SFontGlyph(CRect<int> GlyphRect) : Rect(GlyphRect) { }
CRect<int> Rect;
View q2.cpp
class CWidget
CEventListener* m_ppEventListeners;
int m_EventListenerCount;
CWidget* m_pFirstChild;
View q1.cpp
int CalculateCost(CProvince& From, CProvince& To, CUnit& Unit)
float vCost = 100.0f * GetDistance(From.GetProvinceID(), To.GetProvinceID());
float vSpeed = Unit.GetMovementSpeed(To);
// Advancing into the front! 300% the normal cost.
if(Unit.IsLandUnit() && From.IsLand() && To.IsLand())
if( To.GetController() &&
To.GetController()->IsEnemy(Unit.GetCountry()->GetCountryID()) )
You can’t perform that action at this time.