This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Story Title: Artists need a way to check that their assets adhere to our resource limits | |
Type: User Story | |
Priority: Medium Priority | |
Task Description | |
Our artists need a mechanism to determine which of their assets are breaking our internal resource limits. We have determined that all game resources should follow the following limits for release, both for performance and compatibility issues - but there are no checks or tools to help the artist stick to these limits at the current time. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CGuiWidget | |
{ | |
... | |
public: | |
void Render(); | |
virtual void RenderInternal(); | |
CRect<uint64> ConvertToBounds( CRect<uint64> Frame ) | |
{ ... } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////// | |
// pdx_fontatlas.h | |
//////////////////////// | |
struct SFontGlyph | |
{ | |
SFontGlyph(CRect<int> GlyphRect) : Rect(GlyphRect) { } | |
CRect<int> Rect; | |
}; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CWidget | |
{ | |
... | |
public: | |
CEventListener* m_ppEventListeners; | |
int m_EventListenerCount; | |
private: | |
CWidget* m_pFirstChild; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()) ) |