Back to project page killingspree.
The source code is released under:
MIT License
If you think the Android project killingspree listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.sillygames.killingSpree.networking.messages; /*from w w w . j av a 2s. c o m*/ import com.sillygames.killingSpree.pool.Poolable; public class AudioMessage implements Poolable{ public byte audio; @Override public void reset() { audio = 0; } public void jump() { audio |= 1 << 0; } public void shoot() { audio |= 1 << 1; } public void hurt() { audio |= 1 << 2; } public void explode() { audio |= 1 << 3; } public void jumpedOn() { audio |= 1 << 4; } public boolean getJump() { return ((audio & (1 << 0)) != 0); } public boolean getShoot() { return ((audio & (1 << 1)) != 0); } public boolean getHurt() { return ((audio & (1 << 2)) != 0); } public boolean getExplode() { return ((audio & (1 << 3)) != 0); } public boolean getJumpedOn() { return ((audio & (1 << 4)) != 0); } }