Package org.terasology.logic.characters.events

Examples of org.terasology.logic.characters.events.AttackRequest


        }

        CharacterComponent character = entity.getComponent(CharacterComponent.class);
        EntityRef selectedItemEntity = InventoryUtils.getItemAt(entity, character.selectedItem);

        entity.send(new AttackRequest(selectedItemEntity));

        lastInteraction = time.getGameTimeInMs();
        character.handAnimation = 0.5f;
        entity.saveComponent(character);
        event.consume();
View Full Code Here


    @Test
    public void createConstructorObjectWithProtectedConstructor() throws Exception {
        ReflectFactory reflectFactory = new ByteCodeReflectFactory();
        ObjectConstructor<AttackRequest> constructor = reflectFactory.createConstructor(AttackRequest.class);
        AttackRequest result = constructor.construct();
        assertNotNull(result);
    }
View Full Code Here

TOP

Related Classes of org.terasology.logic.characters.events.AttackRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.