Hi all, i'm working on my third year dissertation which involves the further development of someone else's application i've come across a line of code that i just can't decipher and it isn't commented so i would appreciate any help if someone could tell me what it's doing. The code is below
float CurB = mEntityActionTables->Contains( B->Type ) ? dynamic_cast<EntityActionTable*>( mEntityActionTables->Item[B->Type] )->Values[mDesire] : 0;
mEntityActionTables is a hashtable, i understand the if part is checking if there's an Entity of Type B in the table but i don't know what what is being assigned to CurB as a result. Hopefully that makes some vague kind of sense.
Many Thanks
Andy


LinkBack URL
About LinkBacks
Reply With Quote

