View Single Post
  #8  
Old 01-16-2006, 06:26 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally Posted by Yen
Explain these to me! Please.
NPC Code:
Bitwise-Or                a | b
Bitwise-And a & b
Bitwise-Shift left a << b
Bitwise-Shift right a >> b
Bitwise-Invert ~a
Bitwise-Xor a xor b (operator ^ already used for power)
Bitwise-Or Assignment a |= b
Bitwise-And Assignment a &= b
Shift Left Assignment a <<= b
Shift Right Assignment a >>= b



Also, why do people use := sometimes, instead of =?
Maybe this will help

Bitwise Operators (GameDev)
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote