Back to project page android-jplay.
The source code is released under:
Copyright (c) Nikolaj Baer All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. ...
If you think the Android project android-jplay 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.nikolajbaer.game.objects; /*from w w w. j a v a2 s.c om*/ /* jbox2d */ import org.jbox2d.dynamics.Body; import org.jbox2d.dynamics.BodyDef; import org.jbox2d.common.Vec2; /* local */ import com.nikolajbaer.game.Game; public class BulletObject extends GameObject { public BulletObject(Body b,int damage){ super(b); this.m_damage=damage; } public boolean survivesImpact(){ return false; } public boolean doesDamage(){ return true; } public String getRenderKey(){ return "bullet"; } }